[cfe-commits] r81802 - in /cfe/trunk/test: Sema/bitfield.c Sema/exprs.c SemaObjC/class-bitfield.m

Anders Carlsson andersca at mac.com
Mon Sep 14 15:00:20 PDT 2009


Author: andersca
Date: Mon Sep 14 17:00:20 2009
New Revision: 81802

URL: http://llvm.org/viewvc/llvm-project?rev=81802&view=rev
Log:
Update tests

Modified:
    cfe/trunk/test/Sema/bitfield.c
    cfe/trunk/test/Sema/exprs.c
    cfe/trunk/test/SemaObjC/class-bitfield.m

Modified: cfe/trunk/test/Sema/bitfield.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/bitfield.c?rev=81802&r1=81801&r2=81802&view=diff

==============================================================================
--- cfe/trunk/test/Sema/bitfield.c (original)
+++ cfe/trunk/test/Sema/bitfield.c Mon Sep 14 17:00:20 2009
@@ -21,7 +21,7 @@
   int g : (_Bool)1;
   
   // PR4017  
-  char : 10;      // expected-error {{size of anonymous bitfield exceeds size of its type (8 bits)}}
+  char : 10;      // expected-error {{size of anonymous bit-field exceeds size of its type (8 bits)}}
   unsigned : -2;  // expected-error {{anonymous bit-field has negative width (-2)}}
   float : 12;     // expected-error {{anonymous bit-field has non-integral type 'float'}}
 };

Modified: cfe/trunk/test/Sema/exprs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/exprs.c?rev=81802&r1=81801&r2=81802&view=diff

==============================================================================
--- cfe/trunk/test/Sema/exprs.c (original)
+++ cfe/trunk/test/Sema/exprs.c Mon Sep 14 17:00:20 2009
@@ -60,9 +60,9 @@
 struct f { int x : 4;  float y[]; };
 int test9(struct f *P) {
   int R;
-  R = __alignof(P->x);  // expected-error {{invalid application of '__alignof' to bitfield}}
+  R = __alignof(P->x);  // expected-error {{invalid application of '__alignof' to bit-field}}
   R = __alignof(P->y);   // ok.
-  R = sizeof(P->x); // expected-error {{invalid application of 'sizeof' to bitfield}}
+  R = sizeof(P->x); // expected-error {{invalid application of 'sizeof' to bit-field}}
   return R;
 }
 

Modified: cfe/trunk/test/SemaObjC/class-bitfield.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/class-bitfield.m?rev=81802&r1=81801&r2=81802&view=diff

==============================================================================
--- cfe/trunk/test/SemaObjC/class-bitfield.m (original)
+++ cfe/trunk/test/SemaObjC/class-bitfield.m Mon Sep 14 17:00:20 2009
@@ -20,7 +20,7 @@
 }
 @end
 
- at interface WithBitfields: Base {
+ at interface WithBitFields: Base {
   void *isa; // expected-note {{previous definition is here}}
   unsigned a: 5;
   signed b: 4;
@@ -28,10 +28,10 @@
 }
 @end
 
- at implementation WithBitfields {
+ at implementation WithBitFields {
   char *isa;  // expected-error {{instance variable 'isa' has conflicting type: 'char *' vs 'void *'}}
   unsigned a: 5;  
   signed b: 4; 
-  int c: 3;  // expected-error {{instance variable 'c' has conflicting bitfield width}}
+  int c: 3;  // expected-error {{instance variable 'c' has conflicting bit-field width}}
 }
 @end





More information about the cfe-commits mailing list