aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-11 23:11:52 +0000
committerChris Lattner <sabre@nondot.org>2008-12-11 23:11:52 +0000
commitf62e14dae03604379434d08955bf1087e2639eff (patch)
tree4c36989c7e5bca911179f594bbe9d4b514a9557c
parent20df9b7ab9388b2a488c5b1293cd196b1e073b4e (diff)
add annotation
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60907 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Sema/bitfield.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/bitfield.c b/test/Sema/bitfield.c
index 9b0d6a1fbd..8d060c5238 100644
--- a/test/Sema/bitfield.c
+++ b/test/Sema/bitfield.c
@@ -2,7 +2,10 @@
struct a {
int a : -1; // expected-error{{bit-field 'a' has negative width}}
+
+ // rdar://6081627
int b : 33; // expected-error{{size of bit-field 'b' exceeds size of its type (32 bits)}}
+
int c : (1 + 0.25); // expected-error{{expression is not an integer constant expression}}
int d : (int)(1 + 0.25);
};