From: Chris Lattner Date: Thu, 11 Dec 2008 23:11:52 +0000 (+0000) Subject: add annotation X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f62e14dae03604379434d08955bf1087e2639eff;p=clang add annotation git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60907 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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); };