[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / attr-leaf.c
blob415d1a48ef23120daa1b170713339844e9f2b67c
1 // RUN: %clang_cc1 -verify -fsyntax-only %s
3 void f1(void) __attribute__((leaf));
5 void f2(void) __attribute__((leaf("abc"))); // expected-error {{'leaf' attribute takes no argument}}
7 int var __attribute__ ((leaf())); // expected-warning {{'leaf' attribute only applies to functions}}
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
11 __attribute__((leaf)) void f3(void) {