]> granicus.if.org Git - clang/commitdiff
Merging r352102:
authorHans Wennborg <hans@hanshq.net>
Thu, 24 Jan 2019 23:44:31 +0000 (23:44 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 24 Jan 2019 23:44:31 +0000 (23:44 +0000)
------------------------------------------------------------------------
r352102 | rsmith | 2019-01-24 21:52:56 +0100 (Thu, 24 Jan 2019) | 2 lines

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/branches/release_80@352132 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp

index 686aac2802adafa0d35f3f4390f6d61b3fbc651e..e435bee2c88ee1e0cd9dbac8068beb576e6ad4fe 100644 (file)
@@ -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}}