brintos

brintos / llvm-project-archived public Read only

0
0
Text · 504 B · 415d1a4 Raw
13 lines · c
1// RUN: %clang_cc1 -verify -fsyntax-only %s2 3void f1(void) __attribute__((leaf));4 5void f2(void) __attribute__((leaf("abc"))); // expected-error {{'leaf' attribute takes no argument}}6 7int 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 definition10// The leaf attribute has no effect on functions defined within the current compilation unit11__attribute__((leaf)) void f3(void) {12}13