diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-06 20:01:42 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-06 20:01:42 +0000 |
commit | a11ed85ba193b8200c95d0844c6c38d0b591ec43 (patch) | |
tree | 40638c5100c3123ac12f7abb6ca26a129f09a2ce /gcc/testsuite/gcc.dg/struct-empty-1.c | |
parent | 3c03905c932905a7143ec914064abe6f112dfc3a (diff) | |
download | gcc-a11ed85ba193b8200c95d0844c6c38d0b591ec43.tar.gz |
* gcc.dg/anon-struct-6.c, gcc.dg/anon-struct-7.c,
gcc.dg/anon-struct-8.c, gcc.dg/bitfld-10.c, gcc.dg/bitfld-11.c,
gcc.dg/bitfld-12.c, gcc.dg/func-outside-1.c,
gcc.dg/func-outside-2.c, gcc.dg/label-decl-1.c,
gcc.dg/label-decl-2.c, gcc.dg/label-decl-3.c,
gcc.dg/label-decl-4.c, gcc.dg/struct-empty-1.c,
gcc.dg/struct-empty-2.c, gcc.dg/struct-empty-3.c,
gcc.dg/struct-semi-1.c, gcc.dg/struct-semi-2.c,
gcc.dg/struct-semi-3.c: New tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90193 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/struct-empty-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/struct-empty-1.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/struct-empty-1.c b/gcc/testsuite/gcc.dg/struct-empty-1.c new file mode 100644 index 00000000000..77974656734 --- /dev/null +++ b/gcc/testsuite/gcc.dg/struct-empty-1.c @@ -0,0 +1,10 @@ +/* Test diagnostics for empty structures and unions. Test with no + special options. */ +/* Origin: Joseph Myers <joseph@codesourcery.com> */ +/* { dg-do compile } */ +/* { dg-options "" } */ + +struct s0 {}; +union u0 {}; +struct s1 { int : 1; }; +union u1 { int : 1; }; |