xref: /llvm-project/bolt/test/verify-cfg.test (revision 16fd8799800a649169e39153d95c117fbb8086d7)
1# Verify if the `--verify-cfg` option might produce incorrect alerts.
2
3REQUIRES: system-linux
4
5RUN: %clang %cflags %p/Inputs/hello.c -o %t -Wl,-q
6RUN: llvm-bolt %t -o %t.bolt --verify-cfg 2>&1 | FileCheck %s
7
8CHECK-NOT: BOLT-ERROR: Invalid CFG detected after pass {{.*}}
9