[clang-repl] [codegen] Reduce the state in TBAA. NFC for static compilation. (#98138)
[llvm-project.git] / bolt / test / runtime / X86 / hugify.c
blobcfc0cb62652b9631514dc4bd15e6b948edec293e
1 // Make sure BOLT correctly processes --hugify option
3 #include <stdio.h>
5 int main(int argc, char **argv) {
6 printf("Hello world\n");
7 return 0;
11 REQUIRES: system-linux,bolt-runtime
13 RUN: %clang %cflags -no-pie %s -o %t.nopie.exe -Wl,-q
14 RUN: %clang %cflags -fpic -pie %s -o %t.pie.exe -Wl,-q
16 RUN: llvm-bolt %t.nopie.exe --lite=0 -o %t.nopie --hugify
17 RUN: llvm-bolt %t.pie.exe --lite=0 -o %t.pie --hugify
19 RUN: %t.nopie | FileCheck %s -check-prefix=CHECK-NOPIE
21 CHECK-NOPIE: Hello world
23 RUN: %t.pie | FileCheck %s -check-prefix=CHECK-PIE
25 CHECK-PIE: Hello world