aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/bitfld-12.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/bitfld-12.c')
-rw-r--r--gcc/testsuite/gcc.dg/bitfld-12.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/bitfld-12.c b/gcc/testsuite/gcc.dg/bitfld-12.c
index 8b2b659..1270d9b 100644
--- a/gcc/testsuite/gcc.dg/bitfld-12.c
+++ b/gcc/testsuite/gcc.dg/bitfld-12.c
@@ -7,6 +7,6 @@
struct s { int a : 1; } x, *y;
-int a = offsetof (struct s, a); /* { dg-error "error: attempt to take address of bit-field structure member 'a'" } */
-void *b = &x.a; /* { dg-error "error: cannot take address of bit-field 'a'" } */
-void *c = &y->a; /* { dg-error "error: cannot take address of bit-field 'a'" } */
+int a = offsetof (struct s, a); /* { dg-error "attempt to take address of bit-field structure member 'a'" } */
+void *b = &x.a; /* { dg-error "cannot take address of bit-field 'a'" } */
+void *c = &y->a; /* { dg-error "cannot take address of bit-field 'a'" } */