1 // RUN: %clang_cc1 -verify -fsyntax-only %s
2
3 void f1(void) __attribute__((leaf));
4
5 void f2(void) __attribute__((leaf("abc"))); // expected-error {{'leaf' attribute takes no argument}}
6
7 int var __attribute__ ((leaf())); // expected-warning {{'leaf' attribute only applies to functions}}
8
9 // FIXME: Might diagnose a warning if leaf attribute is used in function definition
10 // The leaf attribute has no effect on functions defined within the current compilation unit
f3(void)11 __attribute__((leaf)) void f3(void) {
12 }
13