summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitfld-1.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-18 21:03:24 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-18 21:03:24 +0000
commit891e084d4fd9d591c0df9288a5bff67be61494e0 (patch)
tree9f486df3f0bb1ce1e6783a9fb57d4d7c914edbb4 /gcc/testsuite/gcc.dg/bitfld-1.c
parentbd5970054af884251223b7f8d7034509dc44c0d1 (diff)
downloadgcc-891e084d4fd9d591c0df9288a5bff67be61494e0.tar.gz
* c-decl.c (check_bitfield_type_and_width): Remove enum special
case suppression of pedwarn. * system.h (ENUM_BITFIELD): Use __extension__. (CHAR_BITFIELD): Likewise. cp/ * cp-tree.h (struct lang_type_header): Remove __extension__. testsuite/ * gcc.dg/bitfld-1.c: Expect warnings for enum bitfields. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74797 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/bitfld-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/bitfld-1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/bitfld-1.c b/gcc/testsuite/gcc.dg/bitfld-1.c
index ae2283cfb1f..37acb6efac2 100644
--- a/gcc/testsuite/gcc.dg/bitfld-1.c
+++ b/gcc/testsuite/gcc.dg/bitfld-1.c
@@ -25,6 +25,7 @@ struct bf1
unsigned long g: 5; /* { dg-warning "GCC extension|ISO C" } */
ui h: 5;
enum foo i: 2; /* { dg-error "narrower" } */
- enum foo j: 3;
+ /* { dg-warning "GCC extension|ISO C" "extension" { target *-*-* } 27 } */
+ enum foo j: 3; /* { dg-warning "GCC extension|ISO C" } */
unsigned int k: 256; /* { dg-error "exceeds its type" } */
};