Changeset 36874e4 for src/examples/quoted_keyword.c
- Timestamp:
- Jan 12, 2016, 3:36:20 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- ebe9b3a
- Parents:
- b18b0b5 (diff), 61f9356 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/quoted_keyword.c
rb18b0b5 r36874e4 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 27 18:27:26 201513 // Update Count : 212 // Last Modified On : Sun Jan 3 22:46:28 2016 13 // Update Count : 7 14 14 // 15 15 16 #include "fstream.h" 17 16 18 // test quoted keyword usage 17 int `catch` ;19 int `catch` = 10; 18 20 19 21 struct { 20 22 int `type`; 21 23 int `struct`; 22 } st ;24 } st = { 10, 10 }; 23 25 24 26 typedef int `forall`; 25 `forall` `throw` ;27 `forall` `throw` = 10; 26 28 27 int foo() { 28 int w = `catch` + st.`type` + st.`struct` + `throw`; 29 int main() { 30 ofstream *sout = ofstream_stdout(); 31 sout | `catch` + st.`type` + st.`struct` + `throw` | endl; 29 32 } 30 33
Note: See TracChangeset
for help on using the changeset viewer.