diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/declspec-12.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/declspec-12.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/declspec-12.c b/gcc/testsuite/gcc.dg/declspec-12.c new file mode 100644 index 000000000..66c153740 --- /dev/null +++ b/gcc/testsuite/gcc.dg/declspec-12.c @@ -0,0 +1,6 @@ +/* Test type qualifier in empty declaration: OK but useless. */ +/* Origin: Joseph Myers <jsm@polyomino.org.uk> */ +/* { dg-do compile } */ +/* { dg-options "-pedantic-errors" } */ + +const struct foo; /* { dg-warning "useless type qualifier in empty declaration" } */ |