From 2bb1531af240c49e6cdc8fec94a21b814cb7ea30 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 26 Oct 2018 19:42:43 +0000 Subject: [PATCH] Fix test expectation to match reality. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345423 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaCXX/alignof.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/SemaCXX/alignof.cpp b/test/SemaCXX/alignof.cpp index 90526c0481..2895cb9d46 100644 --- a/test/SemaCXX/alignof.cpp +++ b/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}} -- 2.50.1