gcc/gcc/testsuite/gcc.dg/c11-static-assert-5.c

6 lines
198 B
C

/* Test C11 static assertions. Non-constant-expression without -pedantic. */
/* { dg-do compile } */
/* { dg-options "-std=c11" } */
_Static_assert ((int)(1.0 + 1.0), "non-constant-expression");