xref: /llvm-project/llvm/test/Object/nm-bitcode.test (revision 5a593547602be6601c6125b689c0ffe325984ecf)
1*5a593547SSteven Wu# Inputs generated with:
2*5a593547SSteven Wu# echo 'int hello() { return 5; }' > test.c
3*5a593547SSteven Wu# clang -O -fembed-bitcode -c -o macho-bitcode-x86_64.o test.c
4*5a593547SSteven Wu# clang -O -fembed-bitcode-marker -c -o macho-bitcode-marker-x86_64.o test.c
5*5a593547SSteven Wu
6*5a593547SSteven WuRUN: llvm-nm -a %p/Inputs/macho-bitcode-x86_64.o \
7*5a593547SSteven WuRUN:         | FileCheck %s
8*5a593547SSteven Wu
9*5a593547SSteven WuRUN: llvm-nm -a %p/Inputs/macho-bitcode-marker-x86_64.o \
10*5a593547SSteven WuRUN:         | FileCheck %s
11*5a593547SSteven Wu
12*5a593547SSteven WuCHECK: T _hello
13