[cfe-commits] r92435 - /cfe/trunk/test/CodeGen/annotate.c

Eli Friedman eli.friedman at gmail.com
Sat Jan 2 16:51:59 PST 2010


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]





More information about the cfe-commits mailing list