2010-01-03 08:51:58 +08:00
|
|
|
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
|
|
|
|
|
|
|
|
__attribute((annotate("foo"))) char foo;
|
|
|
|
void a(char *a) {
|
|
|
|
__attribute__((annotate("bar"))) static char bar;
|
|
|
|
}
|
|
|
|
|
2011-01-18 06:22:52 +08:00
|
|
|
// CHECK: private unnamed_addr global
|
|
|
|
// CHECK: private unnamed_addr global
|
2011-07-10 01:41:47 +08:00
|
|
|
// CHECK: @llvm.global.annotations = appending global [2 x { i8*, i8*, i8*, i32 }]
|