aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/bitfield.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/bitfield.c')
-rw-r--r--test/Sema/bitfield.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/bitfield.c b/test/Sema/bitfield.c
index fb72213475ae..f214b671f6f9 100644
--- a/test/Sema/bitfield.c
+++ b/test/Sema/bitfield.c
@@ -74,3 +74,7 @@ typedef __typeof__(+(--t5.n)) Signed; // This should not promote to signed.
typedef __typeof__(+(t5.n++)) Unsigned; // Post-increment is underspecified, but seems to
typedef __typeof__(+(t5.n--)) Unsigned; // also act like compound-assignment.
+
+struct Test6 {
+ : 0.0; // expected-error{{type name requires a specifier or qualifier}}
+};