1# Tests the optimization of functions that just do a tail call in the beginning. 2 3# This test has commands that rely on shell capabilities that won't execute 4# correctly on Windows e.g. unsupported parameter expansion 5REQUIRES: shell 6 7RUN: %clang %cflags -O2 %S/Inputs/jmp_opt{,2,3}.cpp -o %t 8RUN: llvm-bolt -inline-small-functions %t -o %t.bolt 9RUN: llvm-objdump -d %t.bolt --print-imm-hex | FileCheck %s 10 11CHECK: <main>: 12CHECK-NOT: call 13CHECK: xorl %eax, %eax 14CHECK: retq 15