]> granicus.if.org Git - clang/commitdiff
Add test for annotate attribute for coverage.
authorEli Friedman <eli.friedman@gmail.com>
Sun, 3 Jan 2010 00:51:58 +0000 (00:51 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sun, 3 Jan 2010 00:51:58 +0000 (00:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92435 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/annotate.c [new file with mode: 0644]

diff --git a/test/CodeGen/annotate.c b/test/CodeGen/annotate.c
new file mode 100644 (file)
index 0000000..84d564a
--- /dev/null
@@ -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]