// RUN: %clang_cc1 -std=c++11 -verify %s

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}}
extern unsigned char c[sizeof(double)];
alignas(float) extern unsigned char c[sizeof(double)]; // expected-error {{different alignment}}

// 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}}
extern unsigned char c[sizeof(double)];
alignas(float) extern unsigned char c[sizeof(double)]; // expected-error {{different alignment}}

Add a triple to this test so it passes for targets where alignof(double) really should be equal to alignof(float).
Add a triple to this test so it passes for targets where alignof(double)
really should be equal to alignof(float).

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@352102 91177308-0d34-0410-b5e6-96231b3b80d8
