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

really should be equal to alignof(float).

llvm-svn: 352102
This commit is contained in:
Richard Smith 2019-01-24 20:52:56 +00:00
parent a957fa7e15
commit 2470ac745a
1 changed files with 1 additions and 1 deletions

View 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}}