1*67e74705SXin Li // RUN: %clang_cc1 %s -verify -fsyntax-only 2*67e74705SXin Li 3*67e74705SXin Li namespace test1 { 4*67e74705SXin Li __attribute__((visibility("hidden"))) __attribute__((aligned)) class A; // expected-warning{{attribute 'visibility' is ignored, place it after "class" to apply attribute to type declaration}} \ 5*67e74705SXin Li // expected-warning{{attribute 'aligned' is ignored, place it after "class" to apply attribute to type declaration}} 6*67e74705SXin Li __attribute__((visibility("hidden"))) __attribute__((aligned)) struct B; // expected-warning{{attribute 'visibility' is ignored, place it after "struct" to apply attribute to type declaration}} \ 7*67e74705SXin Li // expected-warning{{attribute 'aligned' is ignored, place it after "struct" to apply attribute to type declaration}} 8*67e74705SXin Li __attribute__((visibility("hidden"))) __attribute__((aligned)) union C; // expected-warning{{attribute 'visibility' is ignored, place it after "union" to apply attribute to type declaration}} \ 9*67e74705SXin Li // expected-warning{{attribute 'aligned' is ignored, place it after "union" to apply attribute to type declaration}} 10*67e74705SXin Li __attribute__((visibility("hidden"))) __attribute__((aligned)) enum D {D}; // expected-warning{{attribute 'visibility' is ignored, place it after "enum" to apply attribute to type declaration}} \ 11*67e74705SXin Li // expected-warning{{attribute 'aligned' is ignored, place it after "enum" to apply attribute to type declaration}} 12*67e74705SXin Li } 13*67e74705SXin Li 14*67e74705SXin Li namespace test2 { 15*67e74705SXin Li __attribute__((visibility("hidden"))) __attribute__((aligned)) class A {} a; 16*67e74705SXin Li __attribute__((visibility("hidden"))) __attribute__((aligned)) struct B {} b; 17*67e74705SXin Li __attribute__((visibility("hidden"))) __attribute__((aligned)) union C {} c; 18*67e74705SXin Li __attribute__((visibility("hidden"))) __attribute__((aligned)) enum D {D} d; 19*67e74705SXin Li } 20