llvm-for-llvmta/tools/clang/test/CodeGen/default-function-attr.c
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

7 lines
227 B
C

// RUN: %clang_cc1 -triple x86_64-unknown-linux -default-function-attr foo=bar -emit-llvm %s -o - | FileCheck %s
// CHECK: define{{.*}} void @foo() #[[X:[0-9]+]]
void foo() {}
// CHECK: attributes #[[X]] = {{.*}} "foo"="bar"