r352102 - Add a triple to this test so it passes for targets where alignof(double)

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 24 12:52:56 PST 2019


Author: rsmith
Date: Thu Jan 24 12:52:56 2019
New Revision: 352102

URL: http://llvm.org/viewvc/llvm-project?rev=352102&view=rev
Log:
Add a triple to this test so it passes for targets where alignof(double)
really should be equal to alignof(float).

Modified:
    cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp

Modified: cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp?rev=352102&r1=352101&r2=352102&view=diff
==============================================================================
--- cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp (original)
+++ cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.align/p8.cpp Thu Jan 24 12:52:56 2019
@@ -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}}




More information about the cfe-commits mailing list