summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema')
-rw-r--r--clang/test/Sema/align-x86.c2
-rw-r--r--clang/test/Sema/anonymous-struct-union.c2
-rw-r--r--clang/test/Sema/arm-layout.c2
-rw-r--r--clang/test/Sema/const-eval.c2
-rw-r--r--clang/test/Sema/missing-field-initializers.c2
-rw-r--r--clang/test/Sema/warn-gnu-designators.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/Sema/align-x86.c b/clang/test/Sema/align-x86.c
index c9a63989ecb..0c84384305a 100644
--- a/clang/test/Sema/align-x86.c
+++ b/clang/test/Sema/align-x86.c
@@ -14,7 +14,7 @@ short chk1[__alignof__(g3) == 8 ? 1 : -1];
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];
diff --git a/clang/test/Sema/anonymous-struct-union.c b/clang/test/Sema/anonymous-struct-union.c
index d9e08397f2d..d88abc3c3b9 100644
--- a/clang/test/Sema/anonymous-struct-union.c
+++ b/clang/test/Sema/anonymous-struct-union.c
@@ -94,7 +94,7 @@ struct {}; // expected-warning{{declaration does not declare anything}}
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.
diff --git a/clang/test/Sema/arm-layout.c b/clang/test/Sema/arm-layout.c
index 42486851042..d017fdb8aa0 100644
--- a/clang/test/Sema/arm-layout.c
+++ b/clang/test/Sema/arm-layout.c
@@ -42,7 +42,7 @@ check(s3_offset_0, __builtin_offsetof(struct s3, field0) == 0);
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);
diff --git a/clang/test/Sema/const-eval.c b/clang/test/Sema/const-eval.c
index aa0cee5da5b..56c429c58c2 100644
--- a/clang/test/Sema/const-eval.c
+++ b/clang/test/Sema/const-eval.c
@@ -58,7 +58,7 @@ EVAL_EXPR(29, (_Complex int)1 ? 1 : -1)
// 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};
diff --git a/clang/test/Sema/missing-field-initializers.c b/clang/test/Sema/missing-field-initializers.c
index 6aa48ba9e41..90e0e2a345b 100644
--- a/clang/test/Sema/missing-field-initializers.c
+++ b/clang/test/Sema/missing-field-initializers.c
@@ -46,7 +46,7 @@ struct Three data[] = {
{ { .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}}
};
diff --git a/clang/test/Sema/warn-gnu-designators.c b/clang/test/Sema/warn-gnu-designators.c
index d5ac8cfe553..bdb3374288d 100644
--- a/clang/test/Sema/warn-gnu-designators.c
+++ b/clang/test/Sema/warn-gnu-designators.c
@@ -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 };
OpenPOWER on IntegriCloud