summaryrefslogtreecommitdiff
path: root/test/CodeGen/default-function-attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/default-function-attr.c')
-rw-r--r--test/CodeGen/default-function-attr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/default-function-attr.c b/test/CodeGen/default-function-attr.c
new file mode 100644
index 0000000000000..1c186e8e55b97
--- /dev/null
+++ b/test/CodeGen/default-function-attr.c
@@ -0,0 +1,6 @@
+// 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"