summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/alignof.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/alignof.cpp')
-rw-r--r--clang/test/SemaCXX/alignof.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/alignof.cpp b/clang/test/SemaCXX/alignof.cpp
index 90526c04819..2895cb9d46c 100644
--- a/clang/test/SemaCXX/alignof.cpp
+++ b/clang/test/SemaCXX/alignof.cpp
@@ -4,9 +4,9 @@
struct S0 {
int x;
- static const int test0 = __alignof__(x); // expected-error {{invalid application of '__alignof' to a field of a class still being defined}}
- static const int test1 = __alignof__(S0::x); // expected-error {{invalid application of '__alignof' to a field of a class still being defined}}
- auto test2() -> char(&)[__alignof__(x)]; // expected-error {{invalid application of '__alignof' to a field of a class still being defined}}
+ static const int test0 = __alignof__(x); // expected-error {{invalid application of 'alignof' to a field of a class still being defined}}
+ static const int test1 = __alignof__(S0::x); // expected-error {{invalid application of 'alignof' to a field of a class still being defined}}
+ auto test2() -> char(&)[__alignof__(x)]; // expected-error {{invalid application of 'alignof' to a field of a class still being defined}}
};
struct S1; // expected-note 6 {{forward declaration}}
OpenPOWER on IntegriCloud