1# Verifies that llvm-bolt recognizes tailcalls and mark them
2# in control flow graph.
3
4RUN: %clang %cflags %S/Inputs/tailcall.s -o %t.exe
5RUN: llvm-bolt %t.exe -o /dev/null --print-cfg 2>&1 | FileCheck %s
6
7CHECK:  Binary Function "foo"
8CHECK:    jmp     bar # TAILCALL
9CHECK:  End of Function "foo"
10
11CHECK:  Binary Function "bar"
12CHECK:    jmp     baz # TAILCALL
13CHECK:  End of Function "bar"
14