llvm-project/clang/test/CodeGen/attr-leaf.c

11 lines
262 B
C

// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -Oz -o - %s | FileCheck %s
// CHECK: define{{.*}} void @f() local_unnamed_addr [[ATTRS:#[0-9]+]] {
void f() __attribute__((leaf));
void f()
{
}
// CHECK: attributes [[ATTRS]] = { {{.*}}nocallback{{.*}} }