Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/enum.cfa

    r0edbdb2 r66812dd  
    2424}
    2525
    26 // test constant-expressions
    27 
    28 struct S {
    29     int i;
    30 };
    31 enum K { P = 3 + 4 };
    32 enum Y { W = 9 + (3 && 4 || 7)};
    33 int p[W];
    34 enum { X = W + -3 + ~1 / 2 * (int)4 + sizeof(struct S) + _Alignof(struct S) || 3 && 5 + (3 ? 1 : 2 ) + __builtin_offsetof(struct S, i ) };
    35 int x[X];
    36 enum { B = 3 + 4 - 7 * 20 / 34 << 3 >> 4 > 8 < 9 <= 23 >= 42 == 12 != 13  & 4 ^ 2 | 8 + sizeof(struct S) + _Alignof(struct S) };
    37 int y[B];
    38 enum { J = +3 + -4 / ~20 * ! 0 };
    39 int z[J] = { 1, 2, 3 };
    40 int aa[41] @= { [3] : 3, [1] : 6 };
    41 
    4226//Dummy main
    4327int main(int argc, char const *argv[]) {
Note: See TracChangeset for help on using the changeset viewer.