llvm-project/llvm/test/Object/nm-bitcode.test

13 lines
393 B
Plaintext

# 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