1 ## Show that the --defined-only option omits undefined symbols.
3 # RUN: yaml2obj %s -o %t.o
4 # RUN: llvm-nm %t.o --defined-only > %t.defonly.txt
5 # RUN: llvm-nm %t.o -U > %t.U.txt
7 # RUN: cmp %t.defonly.txt %t.U.txt
9 # RUN: FileCheck %s --input-file=%t.defonly.txt --implicit-check-not={{.}}
11 # CHECK: 0000000000000000 T defined
21 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]