summaryrefslogtreecommitdiffstats
path: root/clang
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
commitece9ae718b24f7de48819fa428fd517c49c06831 (patch)
treeeb35c70d721b2d0c4de44f0cdd8ad47529a8f86c /clang
parentd65cea8dde2f824a4035f5903932f6d38af81c93 (diff)
downloadbcm5719-llvm-ece9ae718b24f7de48819fa428fd517c49c06831.tar.gz
bcm5719-llvm-ece9ae718b24f7de48819fa428fd517c49c06831.zip
add annotation
llvm-svn: 60907
Diffstat (limited to 'clang')
-rw-r--r--clang/test/Sema/bitfield.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/bitfield.c b/clang/test/Sema/bitfield.c
index 9b0d6a1fbdf..8d060c5238f 100644
--- a/clang/test/Sema/bitfield.c
+++ b/clang/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);
};
OpenPOWER on IntegriCloud