summaryrefslogtreecommitdiffstats
path: root/test/CXX
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-01-24 20:52:56 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-01-24 20:52:56 +0000
commit0215c4f02ff23ab9150d2593024d63580a2c85e1 (patch)
treeebc11d95c52c665b3614c5f087af696ee7650de3 /test/CXX
parent70f6c8251dc10fe358458a4aa9be4f16463cfe26 (diff)
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
Diffstat (limited to 'test/CXX')
-rw-r--r--test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp2
1 files changed, 1 insertions, 1 deletions
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}}