summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/plugin-annotate-functions.c
blob: 1d7b79bf6ee90b6071a2f768b87d79fa8d748212 (plain)
1
2
3
4
5
6
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() { }
OpenPOWER on IntegriCloud