Lines Matching defs:ASSERT
140 #define ASSERT(...) { enum { folded = (__VA_ARGS__) }; int arr[folded ? 1 : -1]; }
141 #define T(...) ASSERT(__builtin_constant_p(__VA_ARGS__))
142 #define F(...) ASSERT(!__builtin_constant_p(__VA_ARGS__))
174 ASSERT(OPT("abc")); // expected-warning {{expression is not an integer constant expression; folding it to a constant is a GNU extension}}
175 ASSERT(!OPT("abcd")); // expected-warning {{expression is not an integer constant expression; folding it to a constant is a GNU extension}}
178 ASSERT(!OPT(test17_c));
179 ASSERT(!OPT(&test17_c[0]));
180 ASSERT(!OPT((char*)test17_c));
182 ASSERT(!OPT(test17_d)); // expected-warning {{folding}}
183 ASSERT(!OPT(&test17_d[0])); // expected-warning {{folding}}
184 ASSERT(!OPT((char*)test17_d)); // expected-warning {{folding}}