source: translator/examples/quoted_keyword.c @ c11e31c

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since c11e31c was d11f789, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

roll back remove and reorder hoisted aggregate, format adjustment

  • Property mode set to 100644
File size: 340 bytes
Line 
1// test quoted keyword usage
2int `catch`;
3
4struct {
5    int `type`;
6    int `struct`;
7} st;
8
9typedef int `forall`;
10`forall` `throw`;
11
12int foo() {
13    int w = `catch` + st.`type` + st.`struct` + `throw`;
14}
15
16#include <math.h>       // has field name "type"
17
18// Local Variables: //
19// compile-command: "../../bin/cfa quoted_keyword.c" //
20// End: //
Note: See TracBrowser for help on using the repository browser.