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