llvm-for-llvmta/test/Object/nm-bitcode.test

13 lines
393 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# Inputs generated with:
# echo 'int hello() { return 5; }' > test.c
# clang -O -fembed-bitcode -c -o macho-bitcode-x86_64.o test.c
# clang -O -fembed-bitcode-marker -c -o macho-bitcode-marker-x86_64.o test.c
RUN: llvm-nm -a %p/Inputs/macho-bitcode-x86_64.o \
RUN: | FileCheck %s
RUN: llvm-nm -a %p/Inputs/macho-bitcode-marker-x86_64.o \
RUN: | FileCheck %s
CHECK: T _hello