Changeset e56eb455
 Timestamp:
 Feb 2, 2020, 8:52:25 AM (4 years ago)
 Branches:
 ADT, armeh, astexperimental, enum, forallpointerdecay, jacob/cs343translation, jenkinssandbox, master, newast, newastuniqueexpr, pthreademulation, qualifiedEnum
 Children:
 1d94116, 4f7b418
 Parents:
 33a484f
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

tests/expression.cfa
r33a484f re56eb455 1 1 struct S { int i; }; 2 void ?{}( S & s, int i ) { }2 void ?{}( S & s, int i ) { s.i = i; } 3 3 int ?`mary( int ); 4 4 int ?`mary( S ); … … 10 10 int a[3] = { 0, 0, 0 }; 11 11 S s = { 3 }, * ps = &s; 12 [int] t ;12 [int] t = { 3 }; 13 13 * [int] pt = &t; 14 int i = 3, j = 4;14 int i = 1, j = 2; 15 15 16 16 // operators 17 17 18 ! 18 !i; 19 19 ~i; 20 20 +i; … … 26 26 ps; 27 27 28 i +j;29 i j;30 i *j;28 i + j; 29 i  j; 30 i * j; 31 31 32 i /j;33 i %j;34 i ^j;35 i &j;36 i j;37 i <j;38 i >j;39 i =j;32 i / j; 33 i % j; 34 i ^ j; 35 i & j; 36 i  j; 37 i < j; 38 i > j; 39 i = j; 40 40 41 i ==j;42 i !=j;43 i <<j;44 i >>j;45 i <=j;46 i >=j;47 i &&j;48 i j;41 i == j; 42 i != j; 43 i << j; 44 i >> j; 45 i <= j; 46 i >= j; 47 i && j; 48 i  j; 49 49 ps>i; 50 50 51 i *=j;52 i /=j;53 i %=j;54 i +=j;55 i =j;56 i &=j;57 i =j;58 i ^=j;59 i <<=j;60 i >>=j;51 i *= j; 52 i /= j; 53 i %= j; 54 i += j; 55 i = j; 56 i &= j; 57 i = j; 58 i ^= j; 59 i <<= j; 60 i >>= j; 61 61 62 i ?i:j;62 i ? i : j; 63 63 64 64 // postfix function call
Note: See TracChangeset
for help on using the changeset viewer.