]> granicus.if.org Git - clang/commitdiff
Fix test expectation to match reality.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 26 Oct 2018 19:42:43 +0000 (19:42 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 26 Oct 2018 19:42:43 +0000 (19:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345423 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/alignof.cpp

index 90526c048193486386887d9749107678472ef4f8..2895cb9d46c7643d071e0f3a0218355a7ff72f1c 100644 (file)
@@ -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}}