blob: 1d7b79bf6ee90b6071a2f768b87d79fa8d748212 [file] [log] [blame]
John Brawn6c789742016-03-15 12:51:40 +00001// RUN: %clang -fplugin=%llvmshlibdir/AnnotateFunctions%pluginext -emit-llvm -S %s -o - | FileCheck %s
2// REQUIRES: plugins, examples
3
4// CHECK: [[STR_VAR:@.+]] = private unnamed_addr constant [19 x i8] c"example_annotation\00"
5// CHECK: @llvm.global.annotations = {{.*}}@fn1{{.*}}[[STR_VAR]]{{.*}}@fn2{{.*}}[[STR_VAR]]
6void fn1() { }
7void fn2() { }