summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/declspec-12.c
blob: 66c153740b8f179ab50de0c741cc1327c0f37e7b (plain)
1
2
3
4
5
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" } */