Changeset f1ee72e for src/tests/Expression.c
- Timestamp:
- Jun 23, 2016, 12:23:00 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, with_gc
- Children:
- 4d3ca1d8
- Parents:
- c2931ea (diff), d56c05d0 (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/tests/Expression.c
rc2931ea rf1ee72e 1 int fred() {2 struct s { int i; } *p;3 int i ;1 int main() { 2 struct s { int i; } x, *p = &x; 3 int i = 3; 4 4 5 // order of evaluation (GCC is different)6 /*7 i = sizeof( (int) {3} );8 i = sizeof (int) {3};9 */10 5 // operators 11 6 … … 42 37 i||i; 43 38 p->i; 44 i+=i;45 i-=i;46 39 i*=i; 47 40 i/=i; 48 41 i%=i; 42 i+=i; 43 i-=i; 49 44 i&=i; 50 45 i|=i; … … 54 49 55 50 i?i:i; 56 57 // cast 58 /* 59 double d; 60 int *ip; 61 (int *) i; 62 (* int) i; 63 ([char, int *])[d, d]; 64 [i,ip,ip] = ([int, * int, int *])[1,(void *)2,(void *)3]; 65 [i,ip,ip] = ([int, * int, int *])([1,(void *)2,(void *)3]); 66 */ 67 } 68 69 //Dummy main 70 int main(int argc, char const *argv[]) 71 { 72 return 0; 73 } 51 } // main
Note:
See TracChangeset
for help on using the changeset viewer.