]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/c11-static-assert-10.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / c11-static-assert-10.c
CommitLineData
3d77686d
JM
1/* Test for constant expressions: casts with integer overflow. PR
2 c/93241. */
3/* { dg-do compile } */
4/* { dg-options "-std=c11 -pedantic-errors" } */
5
6#include <limits.h>
7
8_Static_assert (0 ? (_Bool) (INT_MAX + 1) : 1, "");
9_Static_assert (0 ? (short) ((INT_MAX + 1) != 0) : 1, "");