diff options
Diffstat (limited to 'clang/test/CodeGen/pgo-sample.c')
-rw-r--r-- | clang/test/CodeGen/pgo-sample.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/pgo-sample.c b/clang/test/CodeGen/pgo-sample.c new file mode 100644 index 00000000000..e7d2fa61aa1 --- /dev/null +++ b/clang/test/CodeGen/pgo-sample.c @@ -0,0 +1,6 @@ +// Test if PGO sample use passes are invoked. +// +// Ensure Pass PGOInstrumentationGenPass is invoked. +// RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s +// CHECK: Remove unused exception handling info +// CHECK: Sample profile pass |