Changeset a65d92e for src/Tests/ResolvExpr/Members.c
- Timestamp:
- Jun 5, 2015, 9:34:43 AM (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:
- 59db689
- Parents:
- 44b5ca0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tests/ResolvExpr/Members.c
r44b5ca0 ra65d92e 1 // "../../cfa-cpp -nc Members.c"2 3 1 char ?=?( char*, char ); 4 2 int ?=?( int*, int ); … … 13 11 void d( float* ); 14 12 15 struct a_struct 16 { 17 int a; 18 char a; 19 float a; 13 struct a_struct { 14 int a; 15 char a; 16 float a; 20 17 }; 21 18 22 union b_struct 23 { 24 int *a; 25 char *a; 26 float *a; 19 union b_struct { 20 int *a; 21 char *a; 22 float *a; 27 23 }; 28 24 29 void f() 30 { 31 struct a_struct the_struct; 32 union b_struct the_struct; 25 void f() { 26 struct a_struct the_struct; 27 union b_struct the_struct; 33 28 34 35 36 37 29 a( the_struct.a ); 30 b( the_struct.a ); 31 c( the_struct.a ); 32 d( the_struct.a ); 38 33 } 39 34 40 struct c_struct 41 { 42 int; 43 char; 44 float; 35 struct c_struct { 36 int; 37 char; 38 float; 45 39 }; 46 40 47 union d_struct 48 { 49 int*; 50 char*; 51 float*; 41 union d_struct { 42 int*; 43 char*; 44 float*; 52 45 }; 53 46 54 void g() 55 { 56 unsigned short x; 57 struct c_struct x; 58 union d_struct x; 47 void g() { 48 unsigned short x; 49 struct c_struct x; 50 union d_struct x; 59 51 60 61 62 63 52 a( x ); // the 'a' and 'b' calls resolve to the ushort 53 b( x ); // it's debatable whether this is good 54 c( x ); 55 d( x ); 64 56 } 65 57 … … 72 64 struct forward { int y; }; 73 65 74 void h() 75 { 66 void h() { 76 67 q->y; 77 68 } 69 70 // Local Variables: // 71 // tab-width: 4 // 72 // End: //
Note: See TracChangeset
for help on using the changeset viewer.