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