Author: efriedma
Date: Sat Jan  2 18:51:58 2010
New Revision: 92435

URL: http://llvm.org/viewvc/llvm-project?rev=92435&view=rev
Log:
Add test for annotate attribute for coverage.


Added:
    cfe/trunk/test/CodeGen/annotate.c

Added: cfe/trunk/test/CodeGen/annotate.c
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/annotate.c?rev=92435&view=auto

==============================================================================
--- cfe/trunk/test/CodeGen/annotate.c (added)
+++ cfe/trunk/test/CodeGen/annotate.c Sat Jan  2 18:51:58 2010
@@ -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]


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to