Changeset 0b2961f for src/Tests/SynTree/Typedef.c
- Timestamp:
- Jun 9, 2015, 3:19:04 PM (9 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:
- 8a95629
- Parents:
- 81419b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tests/SynTree/Typedef.c
r81419b5 r0b2961f 2 2 3 3 void f( void ) { 4 5 4 int T( T ); 5 T( 3 ); 6 6 } 7 7 8 8 struct { 9 9 T (T); 10 10 } fred = { 3 }; 11 11 … … 14 14 15 15 int g(void) { 16 16 double a; 17 17 } 18 18 a c; 19 19 20 // typedef x = 3, y = 3; /* GCC */ 20 typedef typeof(3) x, y; // GCC 21 21 22 //x p;23 //y q;22 x p; 23 y q; 24 24 25 25 int main() { 26 // typedef z = p = 3; 26 typedef typeof(3) z, p; 27 z w; 28 p x; 27 29 } 28 30 … … 30 32 31 33 typedef [10] * int arrayOf10Pointers; 32 arrayOf10Pointers x;34 arrayOf10Pointers array; 33 35 typedef const * int constantPointer; 34 36 typedef * [ int ]( [] int ) funcPtr;
Note: See TracChangeset
for help on using the changeset viewer.