xref: /llvm-project/clang/test/CodeGen/new-pass-manager-opt-bisect.c (revision 61d418f97154805100dc19ff2ef1338e9de2f27d)
1 // REQUIRES: x86-registered-target
2 
3 // Make sure opt-bisect works through both pass managers
4 //
5 // RUN: %clang_cc1 -triple x86_64-linux-gnu -O1 %s -mllvm -opt-bisect-limit=-1 -emit-obj -o /dev/null 2>&1 | FileCheck %s
6 
7 // CHECK: BISECT: running pass (1)
8 // CHECK-NOT: BISECT: running pass (1)
9 // Make sure that legacy pass manager is running
10 // CHECK: Instruction Selection
11 
func(int a)12 int func(int a) { return a; }
13