Debian Codegraph @

clang/test/CodeGen/pass-plugins.c

raw
1 // RUN: %clang_cc1 -S < %s -fpass-plugin=%llvmshlibdir/Bye%pluginext -O2 2>&1 | FileCheck %s --check-prefix=CHECK-INACTIVE
2 // RUN: %clang_cc1 -S < %s -fpass-plugin=%llvmshlibdir/Bye%pluginext -O2 -mllvm -wave-goodbye 2>&1 | FileCheck %s --check-prefix=CHECK-ACTIVE
3 // REQUIRES: plugins, llvm-examples
4 // UNSUPPORTED: target={{.*windows.*}}
5 // Plugins are currently broken on AIX, at least in the CI.
6 // XFAIL: target={{.*}}-aix{{.*}}
7 // CHECK-INACTIVE-NOT: Bye
8 // CHECK-ACTIVE: Bye: f
9
10 int f(int x) {
11 return x;
12 }