diff options
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/struct-empty-2.c')
-rw-r--r-- | gcc-4.8.1/gcc/testsuite/gcc.dg/struct-empty-2.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/struct-empty-2.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/struct-empty-2.c deleted file mode 100644 index 1f06a1b17..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.dg/struct-empty-2.c +++ /dev/null @@ -1,10 +0,0 @@ -/* Test diagnostics for empty structures and unions. Test with - -pedantic. */ -/* Origin: Joseph Myers <joseph@codesourcery.com> */ -/* { dg-do compile } */ -/* { dg-options "-pedantic" } */ - -struct s0 {}; /* { dg-warning "struct has no members" } */ -union u0 {}; /* { dg-warning "union has no members" } */ -struct s1 { int : 1; }; /* { dg-warning "struct has no named members" } */ -union u1 { int : 1; }; /* { dg-warning "union has no named members" } */ |