[cfe-commits] r127188 - in /cfe/trunk/test: Analysis/string.c Sema/align-x86.c Sema/anonymous-struct-union.c Sema/arm-layout.c Sema/const-eval.c Sema/missing-field-initializers.c Sema/warn-gnu-designators.c SemaObjC/sizeof-interface.m

Carl Norum carl.norum at apple.com
Mon Mar 7 14:57:45 PST 2011


Author: carl
Date: Mon Mar  7 16:57:45 2011
New Revision: 127188

URL: http://llvm.org/viewvc/llvm-project?rev=127188&view=rev
Log:
Fix tests to account for new warning "expected ';' at end of declaration list".  Sorry, folks!

Modified:
    cfe/trunk/test/Analysis/string.c
    cfe/trunk/test/Sema/align-x86.c
    cfe/trunk/test/Sema/anonymous-struct-union.c
    cfe/trunk/test/Sema/arm-layout.c
    cfe/trunk/test/Sema/const-eval.c
    cfe/trunk/test/Sema/missing-field-initializers.c
    cfe/trunk/test/Sema/warn-gnu-designators.c
    cfe/trunk/test/SemaObjC/sizeof-interface.m

Modified: cfe/trunk/test/Analysis/string.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/string.c?rev=127188&r1=127187&r2=127188&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/string.c (original)
+++ cfe/trunk/test/Analysis/string.c Mon Mar  7 16:57:45 2011
@@ -68,7 +68,7 @@
 }
 
 void strlen_subregion() {
-  struct two_strings { char a[2], b[2] };
+  struct two_strings { char a[2], b[2]; };
   extern void use_two_strings(struct two_strings *);
 
   struct two_strings z;
@@ -200,7 +200,7 @@
 }
 
 void strnlen_subregion() {
-  struct two_stringsn { char a[2], b[2] };
+  struct two_stringsn { char a[2], b[2]; };
   extern void use_two_stringsn(struct two_stringsn *);
 
   struct two_stringsn z;

Modified: cfe/trunk/test/Sema/align-x86.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/align-x86.c?rev=127188&r1=127187&r2=127188&view=diff
==============================================================================
--- cfe/trunk/test/Sema/align-x86.c (original)
+++ cfe/trunk/test/Sema/align-x86.c Mon Mar  7 16:57:45 2011
@@ -14,7 +14,7 @@
 short chk2[__alignof__(_Complex double) == 8 ? 1 : -1];
 
 // PR6362
-struct __attribute__((packed)) {unsigned int a} g4;
+struct __attribute__((packed)) {unsigned int a;} g4;
 short chk1[__alignof__(g4) == 1 ? 1 : -1];
 short chk2[__alignof__(g4.a) == 1 ? 1 : -1];
 

Modified: cfe/trunk/test/Sema/anonymous-struct-union.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/anonymous-struct-union.c?rev=127188&r1=127187&r2=127188&view=diff
==============================================================================
--- cfe/trunk/test/Sema/anonymous-struct-union.c (original)
+++ cfe/trunk/test/Sema/anonymous-struct-union.c Mon Mar  7 16:57:45 2011
@@ -94,7 +94,7 @@
 struct s2 {
   union {
     int a;
-  }
+  } // expected-warning{{expected ';' at end of declaration list}}
 }; // expected-error{{expected member name or ';' after declaration specifiers}}
 
 // Make sure we don't a.k.a. anonymous structs.

Modified: cfe/trunk/test/Sema/arm-layout.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/arm-layout.c?rev=127188&r1=127187&r2=127188&view=diff
==============================================================================
--- cfe/trunk/test/Sema/arm-layout.c (original)
+++ cfe/trunk/test/Sema/arm-layout.c Mon Mar  7 16:57:45 2011
@@ -42,7 +42,7 @@
 check(s3_offset_1, __builtin_offsetof(struct s3, field2) == 7);
 
 struct s4 {
-  int field0 : 4
+  int field0 : 4;
 };
 #ifdef __ARM_EABI__
 check(s4_size, sizeof(struct s4) == 4);

Modified: cfe/trunk/test/Sema/const-eval.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/const-eval.c?rev=127188&r1=127187&r2=127188&view=diff
==============================================================================
--- cfe/trunk/test/Sema/const-eval.c (original)
+++ cfe/trunk/test/Sema/const-eval.c Mon Mar  7 16:57:45 2011
@@ -58,7 +58,7 @@
 
 
 // PR4027 + rdar://6808859
-struct a { int x, y };
+struct a { int x, y; };
 static struct a V2 = (struct a)(struct a){ 1, 2};
 static const struct a V1 = (struct a){ 1, 2};
 

Modified: cfe/trunk/test/Sema/missing-field-initializers.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/missing-field-initializers.c?rev=127188&r1=127187&r2=127188&view=diff
==============================================================================
--- cfe/trunk/test/Sema/missing-field-initializers.c (original)
+++ cfe/trunk/test/Sema/missing-field-initializers.c Mon Mar  7 16:57:45 2011
@@ -46,7 +46,7 @@
   { { .two = { 1.0f, 2.0f } } } // expected-warning {{missing field 'e' initializer}}
 };
 
-struct { int:5; int a; int:5; int b; int:5 } noNamedImplicit[] = {
+struct { int:5; int a; int:5; int b; int:5; } noNamedImplicit[] = {
   { 1, 2 },
   { 1 } // expected-warning {{missing field 'b' initializer}}
 };

Modified: cfe/trunk/test/Sema/warn-gnu-designators.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-gnu-designators.c?rev=127188&r1=127187&r2=127188&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-gnu-designators.c (original)
+++ cfe/trunk/test/Sema/warn-gnu-designators.c Mon Mar  7 16:57:45 2011
@@ -1,2 +1,2 @@
 // RUN: %clang_cc1 -Wno-gnu-designator -verify %s
-struct { int x, y, z[12] } value = { x:17, .z [3 ... 5] = 7 };
+struct { int x, y, z[12]; } value = { x:17, .z [3 ... 5] = 7 };

Modified: cfe/trunk/test/SemaObjC/sizeof-interface.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/sizeof-interface.m?rev=127188&r1=127187&r2=127188&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/sizeof-interface.m (original)
+++ cfe/trunk/test/SemaObjC/sizeof-interface.m Mon Mar  7 16:57:45 2011
@@ -43,7 +43,7 @@
 @synthesize p0 = _p0;
 @end
 
-typedef struct { @defs(I1) } I1_defs; // expected-error {{invalid application of @defs in non-fragile ABI}}
+typedef struct { @defs(I1); } I1_defs; // expected-error {{invalid application of @defs in non-fragile ABI}}
 
 // FIXME: This is currently broken due to the way the record layout we
 // create is tied to whether we have seen synthesized properties. Ugh.





More information about the cfe-commits mailing list