Files
clang-p2996/bolt/test/X86/exceptions-args.test
Amir Ayupov ab14eb23b6 [BOLT][test] Replace /dev/null with temp file (#73485)
NFC processing time script identifies tests by output filename.
When `/dev/null` is used as output filename, we're unable to tell the
source test, and the reports are unhelpful.
Replace `/dev/null/` with `%t.null` which resolves the issue.
2023-11-27 10:53:18 -08:00

12 lines
555 B
Plaintext

# Check that we handle GNU_args_size correctly.
# It is generated for throwing functions with LP that have parameters on stack.
RUN: %clang %cflags %p/../Inputs/stub.c -fPIC -pie -shared -o %t.so
RUN: %clangxx %cxxflags -no-pie %p/Inputs/exc_args.s -o %t %t.so -Wl,-z,notext
RUN: llvm-bolt %t -o %t.null --print-finalized --print-only=main | FileCheck %s
CHECK: Binary Function "main" after finalize-functions
CHECK: callq _Z3fooiiiiiiii {{.*}} GNU_args_size = 16
CHECK: callq printf@PLT {{.*}} GNU_args_size = 0
CHECK: End of Function "main"