diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-11 23:11:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-11 23:11:52 +0000 |
commit | ece9ae718b24f7de48819fa428fd517c49c06831 (patch) | |
tree | eb35c70d721b2d0c4de44f0cdd8ad47529a8f86c /clang | |
parent | d65cea8dde2f824a4035f5903932f6d38af81c93 (diff) | |
download | bcm5719-llvm-ece9ae718b24f7de48819fa428fd517c49c06831.tar.gz bcm5719-llvm-ece9ae718b24f7de48819fa428fd517c49c06831.zip |
add annotation
llvm-svn: 60907
Diffstat (limited to 'clang')
-rw-r--r-- | clang/test/Sema/bitfield.c | 3 |
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); }; |