brintos

brintos / llvm-project-archived public Read only

0
0
Text · 510 B · a8586ca Raw
23 lines · c
1#include <stdio.h>2 3int dummy() {4  printf("Dummy called\n");5  return 0;6}7 8int main(int argc, char **argv) {9  if (dummy() != 0)10    return 1;11  printf("Main called\n");12  return 0;13}14// Check that emitting trap value works properly and15// does not break functions16// REQUIRES: system-linux17// RUN: %clangxx -Wl,-q %s -o %t.exe18// RUN: %t.exe | FileCheck %s19// CHECK: Dummy called20// CHECK-NEXT: Main called21// RUN: llvm-bolt %t.exe -o %t.exe.bolt -lite=false --mark-funcs22// RUN: %t.exe.bolt | FileCheck %s23