You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void__attribute__((example)) fn3(); // expected-error {{'example' attribute only allowed at file scope}}
20
42
};
21
-
voidfn4() __attribute__((example(123))) { } // expected-error {{first argument to the 'example' attribute must be a string literal}}
22
-
voidfn5() __attribute__((example("a","b", 3, 4.0))) { } // expected-error {{'example' attribute only accepts at most three arguments}}
43
+
voidfn4() __attribute__((example(123))) { // expected-error {{first argument to the 'example' attribute must be a string literal}}
44
+
__attribute__((example("somestring"))) while (true); // expected-warning {{'example' attribute only applies to for loop statements}}
45
+
}
46
+
voidfn5() __attribute__((example("a","b", 3, 4.0))) { // expected-error {{'example' attribute only accepts at most three arguments}}
47
+
__attribute__((example("a","b", 3, 4.0))) for (int i = 0; i < 10; ++i) {} // expected-error {{'example' attribute only accepts at most three arguments}}
0 commit comments