Author: lattner
Date: Thu Dec 11 17:11:52 2008
New Revision: 60907
URL: http://llvm.org/viewvc/llvm-project?rev=60907&view=rev
Log:
add annotation
Modified:
cfe/trunk/test/Sema/bitfield.c
Modified: cfe/trunk/test/Sema/bitfield.c
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/bitfield.c?rev=60907&r1=60906&r2=60907&view=diff
==============================================================================
--- cfe/trunk/test/Sema/bitfield.c (original)
+++ cfe/trunk/test/Sema/bitfield.c Thu Dec 11 17:11:52 2008
@@ -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);
};
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits