1 // RUN: %clang_cc1 -std=c++11 -verify %s
2 
3 alignas(double) void f(); // expected-error {{'alignas' attribute only applies to variables, data members and tag types}}
4 alignas(double) unsigned char c[sizeof(double)]; // expected-note {{previous}}
5 extern unsigned char c[sizeof(double)];
6 alignas(float) extern unsigned char c[sizeof(double)]; // expected-error {{different alignment}}
7