summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/annotate.c')
-rw-r--r--test/CodeGen/annotate.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/annotate.c b/test/CodeGen/annotate.c
new file mode 100644
index 0000000..84d564a
--- /dev/null
+++ b/test/CodeGen/annotate.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+
+__attribute((annotate("foo"))) char foo;
+void a(char *a) {
+ __attribute__((annotate("bar"))) static char bar;
+}
+
+// CHECK: @llvm.global.annotations = appending global [2 x %0]
OpenPOWER on IntegriCloud