From a3fa5c7f1b5e2ba4d6ec033dc0e2376326b05824 Mon Sep 17 00:00:00 2001 From: rdivacky Date: Fri, 15 Jan 2010 15:39:40 +0000 Subject: Update clang to r93512. --- test/CodeGen/annotate.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CodeGen/annotate.c (limited to 'test/CodeGen/annotate.c') 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] -- cgit v1.1