111791ae7SSayhaan Siddiqui## Check that a function that references a label inside itself, 211791ae7SSayhaan Siddiqui## as in the case of vararg handling code generated by GCC 4.5 311791ae7SSayhaan Siddiqui## and earlier, is recognized as multi-entry. 401a81dcaSAmir Ayupov 501a81dcaSAmir AyupovREQUIRES: x86_64-linux 601a81dcaSAmir Ayupov 7487570fbSAmir AyupovRUN: %clangxx %cxxflags -no-pie %p/../Inputs/vararg.s -o %t -Wl,-q 8*887f7002SConnieRUN: llvm-bolt %t -o %t.null --print-cfg --print-only=.*printf.* 2>&1 | FileCheck %s 901a81dcaSAmir Ayupov 1001a81dcaSAmir AyupovCHECK: IsSimple : 0 1101a81dcaSAmir AyupovCHECK: Entry Point 1201a81dcaSAmir AyupovCHECK: Entry Point 13