aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-14 22:00:20 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-14 22:00:20 +0000
commit31fddcca28ffb7a569ee8f5d565a856827d92ada (patch)
treeb03cd2efe1351dfda6661a6f60946f4b13ffd469
parent05b23ea2119b4c411719bd6631e5d679ba5e7ef1 (diff)
Update tests
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81802 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Sema/bitfield.c2
-rw-r--r--test/Sema/exprs.c4
-rw-r--r--test/SemaObjC/class-bitfield.m6
3 files changed, 6 insertions, 6 deletions
diff --git a/test/Sema/bitfield.c b/test/Sema/bitfield.c
index 655f74121a..581af6d0c5 100644
--- a/test/Sema/bitfield.c
+++ b/test/Sema/bitfield.c
@@ -21,7 +21,7 @@ struct a {
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'}}
};
diff --git a/test/Sema/exprs.c b/test/Sema/exprs.c
index faa6c285c6..69a2320397 100644
--- a/test/Sema/exprs.c
+++ b/test/Sema/exprs.c
@@ -60,9 +60,9 @@ int test8(void) {
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;
}
diff --git a/test/SemaObjC/class-bitfield.m b/test/SemaObjC/class-bitfield.m
index 01b532464c..82209121b1 100644
--- a/test/SemaObjC/class-bitfield.m
+++ b/test/SemaObjC/class-bitfield.m
@@ -20,7 +20,7 @@
}
@end
-@interface WithBitfields: Base {
+@interface WithBitFields: Base {
void *isa; // expected-note {{previous definition is here}}
unsigned a: 5;
signed b: 4;
@@ -28,10 +28,10 @@
}
@end
-@implementation WithBitfields {
+@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