diff options
Diffstat (limited to 'clang/test/Frontend/plugin-annotate-functions.c')
-rw-r--r-- | clang/test/Frontend/plugin-annotate-functions.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Frontend/plugin-annotate-functions.c b/clang/test/Frontend/plugin-annotate-functions.c new file mode 100644 index 0000000..1d7b79b --- /dev/null +++ b/clang/test/Frontend/plugin-annotate-functions.c @@ -0,0 +1,7 @@ +// RUN: %clang -fplugin=%llvmshlibdir/AnnotateFunctions%pluginext -emit-llvm -S %s -o - | FileCheck %s +// REQUIRES: plugins, examples + +// CHECK: [[STR_VAR:@.+]] = private unnamed_addr constant [19 x i8] c"example_annotation\00" +// CHECK: @llvm.global.annotations = {{.*}}@fn1{{.*}}[[STR_VAR]]{{.*}}@fn2{{.*}}[[STR_VAR]] +void fn1() { } +void fn2() { } |