diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/c1x-static-assert-5.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/c1x-static-assert-5.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c1x-static-assert-5.c b/gcc/testsuite/gcc.dg/c1x-static-assert-5.c new file mode 100644 index 000000000..d4d0821f0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/c1x-static-assert-5.c @@ -0,0 +1,5 @@ +/* Test C1X static assertions. Non-constant-expression without -pedantic. */ +/* { dg-do compile } */ +/* { dg-options "-std=c1x" } */ + +_Static_assert ((int)(1.0 + 1.0), "non-constant-expression"); |