From: Richard Smith Date: Thu, 24 Jan 2019 20:52:56 +0000 (+0000) Subject: Add a triple to this test so it passes for targets where alignof(double) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0215c4f02ff23ab9150d2593024d63580a2c85e1;p=clang Add a triple to this test so it passes for targets where alignof(double) really should be equal to alignof(float). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352102 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp b/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp index 686aac2802..e435bee2c8 100644 --- a/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp +++ b/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -std=c++11 -verify %s +// RUN: %clang_cc1 -std=c++11 -verify %s -triple x86_64-linux-gnu alignas(double) void f(); // expected-error {{'alignas' attribute only applies to variables, data members and tag types}} alignas(double) unsigned char c[sizeof(double)]; // expected-note {{previous}}