Lines Matching refs:EVAL_EXPR

3 #define EVAL_EXPR(testno, expr) int test##testno = sizeof(struct{char qq[expr];});  macro
5 EVAL_EXPR(1, (_Bool)&x)
6 EVAL_EXPR(2, (int)(1.0+(double)4))
7 EVAL_EXPR(3, (int)(1.0+(float)4.0))
8 EVAL_EXPR(4, (_Bool)(1 ? (void*)&x : 0))
9 EVAL_EXPR(5, (_Bool)(int[]){0})
11 EVAL_EXPR(6, (int)(1+(struct y*)0))
12 EVAL_EXPR(7, (int)&((struct y*)0)->y)
13 EVAL_EXPR(8, (_Bool)"asdf")
14 EVAL_EXPR(9, !!&x)
15 EVAL_EXPR(10, ((void)1, 12))
17 EVAL_EXPR(11, (g0(), 12)) // expected-error {{must have a constant size}}
18 EVAL_EXPR(12, 1.0&&2.0)
19 EVAL_EXPR(13, x || 3.0) // expected-error {{must have a constant size}}
22 EVAL_EXPR(14, (1 ^ l_19) && 1); // expected-error {{fields must have a constant size}}
27 EVAL_EXPR(15, (_Bool)&a); in f()
36 EVAL_EXPR(18, ((int)((void*)10 + 10)) == 20 ? 1 : -1);
42 EVAL_EXPR(19, ((int)&*(char*)10 == 10 ? 1 : -1));
44 EVAL_EXPR(20, __builtin_constant_p(*((int*) 10)));
46 EVAL_EXPR(21, (__imag__ 2i) == 2 ? 1 : -1);
48 EVAL_EXPR(22, (__real__ (2i+3)) == 3 ? 1 : -1);
54 EVAL_EXPR(26, (_Complex double)0 ? -1 : 1)
55 EVAL_EXPR(27, (_Complex int)0 ? -1 : 1)
56 EVAL_EXPR(28, (_Complex double)1 ? 1 : -1)
57 EVAL_EXPR(29, (_Complex int)1 ? 1 : -1)
65 EVAL_EXPR(30, (int)(_Complex float)((1<<30)-1) == (1<<30) ? 1 : -1)
66 EVAL_EXPR(31, (int*)0 == (int*)0 ? 1 : -1)
67 EVAL_EXPR(32, (int*)0 != (int*)0 ? -1 : 1)
68 EVAL_EXPR(33, (void*)0 - (void*)0 == 0 ? 1 : -1)
70 EVAL_EXPR(34, (foo == (void *)0) ? -1 : 1)
74 EVAL_EXPR(35, constbool)
75 EVAL_EXPR(36, constbool)
77 EVAL_EXPR(37, (1,2.0) == 2.0 ? 1 : -1)
78 EVAL_EXPR(38, __builtin_expect(1,1) == 1 ? 1 : -1)
81 EVAL_EXPR(39, __real__(1.f) == 1 ? 1 : -1)
82 EVAL_EXPR(40, __imag__(1.f) == 0 ? 1 : -1)
85 EVAL_EXPR(41, (int)(1+(_Complex unsigned)2))
114 EVAL_EXPR(42, __builtin_constant_p(pr11391.f = 1))
119 EVAL_EXPR(43, varfloat && constfloat) // expected-error {{must have a constant size}}
122 EVAL_EXPR(45, ((char*)-1) + 1 == 0 ? 1 : -1)
123 EVAL_EXPR(46, ((char*)-1) + 1 < (char*) -1 ? 1 : -1)
124 EVAL_EXPR(47, &x < &x + 1 ? 1 : -1)
125 EVAL_EXPR(48, &x != &x - 1 ? 1 : -1)
126 EVAL_EXPR(49, &x < &x - 100 ? 1 : -1) // expected-error {{must have a constant size}}
129 EVAL_EXPR(50, &Test50 < (struct Test50S*)((unsigned)&Test50 + 10)) // expected-error {{must have a …
132 EVAL_EXPR(51, 0 != (float)1e99)
139 EVAL_EXPR(52, &pr24622 == (void *)&PR24622); // expected-error {{must have a constant size}}