Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/gnu2x-static-assert-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Test C11 static assertions. Omitting the string diagnosed with | |
2 -Wc11-c2x-compat. */ | |
3 /* { dg-do compile } */ | |
4 /* { dg-options "-std=gnu2x -Wc11-c2x-compat" } */ | |
5 | |
6 _Static_assert (1); /* { dg-warning "does not support omitting the string" } */ |