@@ -72,25 +72,30 @@ namespace test_misplacement {
7272[[]] enum E2 { }; // expected-error{{misplaced attributes}}
7373}
7474
75- __attribute__ (()) [[]] alignas (int ) int xx; // expected-none
75+ __attribute__ (()) alignas (int ) int xx; // expected-none
7676__attribute__ (()) alignas (int ) [[]] int yy; // expected-none
7777[[]] __attribute__(()) alignas (int ) int zz; // expected-none
7878alignas (int ) [[]] __attribute__(()) int aa; // expected-none
79+ [[]] alignas (int ) __attribute__(()) int bb; // expected-none
80+ __attribute__ (()) [[]] alignas (int ) int cc; // expected-none
7981
8082class C1 {
81- __attribute__ (()) [[]] alignas (int ) int x; // expected-none
83+ __attribute__ (()) alignas (int ) int x; // expected-none
8284 __attribute__ (()) alignas (int ) [[]] int y; // expected-none
8385 [[]] __attribute__(()) alignas (int ) int z; // expected-none
8486 alignas (int ) [[]] __attribute__(()) int a; // expected-none
87+ [[]] alignas (int ) __attribute__(()) int b; // expected-none
88+ __attribute__ (()) [[]] alignas (int ) int c; // expected-none
8589};
8690
8791void fn_with_decl () {
8892 __attribute__ (()) alignas (int ) int x; // expected-none
8993 __attribute__ (()) alignas (int ) [[]] int y; // expected-none
9094 [[]] __attribute__ (()) alignas (int ) int z; // expected-none
9195 alignas (int ) [[]] __attribute__ (()) int a; // expected-none
96+ [[]] alignas (int ) __attribute__ (()) int b; // expected-none
97+ __attribute__ (()) [[]] alignas (int ) int c; // expected-none
9298}
93-
9499// Checks attributes placed at wrong syntactic locations of class specifiers.
95100class [[]] [[]]
96101 attr_after_class_name_decl [[]] [[]]; // expected-error {{an attribute list cannot appear here}}
0 commit comments