libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-static-assert-10.c
blob2fe210b6cc8723398cb4cdf37b679ac5fac9007f
1 /* Test for constant expressions: casts with integer overflow. PR
2 c/93241. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c11 -pedantic-errors" } */
6 #include <limits.h>
8 _Static_assert (0 ? (_Bool) (INT_MAX + 1) : 1, "");
9 _Static_assert (0 ? (short) ((INT_MAX + 1) != 0) : 1, "");