brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 159c769 Raw
47 lines · plain
1# REQUIRES: x862 3# RUN: rm -rf %t; split-file %s %t4 5# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/undefined-symbol.s -o %t/undefined-symbol.o6# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/export-symbols.s -o %t/export-symbols.o7 8# RUN: not %lld %t/undefined-symbol.o -o /dev/null 2>&1 | FileCheck --check-prefix=UNDEF %s9# RUN: not %lld -demangle %t/undefined-symbol.o -o /dev/null 2>&1 | \10# RUN:     FileCheck --check-prefix=DEMANGLE-UNDEF %s11 12# RUN: not %lld -exported_symbol __ZTIN3foo3bar4MethE -exported_symbol __ZTSN3foo3bar4MethE %t/export-symbols.o -o /dev/null 2>&1 | FileCheck --check-prefix=EXPORT %s13# RUN: not %lld -demangle -exported_symbol __ZTIN3foo3bar4MethE -exported_symbol __ZTSN3foo3bar4MethE %t/export-symbols.o -o /dev/null 2>&1 | FileCheck --check-prefix=DEMANGLE-EXPORT %s14 15# UNDEF: undefined symbol: __Z1fv16# DEMANGLE-UNDEF: undefined symbol: f()17 18# EXPORT-DAG: cannot export hidden symbol __ZTSN3foo3bar4MethE19# EXPORT-DAG: cannot export hidden symbol __ZTIN3foo3bar4MethE20 21# DEMANGLE-EXPORT-DAG: cannot export hidden symbol typeinfo name for foo::bar::Meth22# DEMANGLE-EXPORT-DAG: cannot export hidden symbol typeinfo for foo::bar::Meth23 24#--- undefined-symbol.s25.globl _main26_main:27  callq __Z1fv28  ret29 30 31#--- export-symbols.s32.globl _main33_main:34  ret35 36.globl __ZTIN3foo3bar4MethE37.weak_def_can_be_hidden __ZTIN3foo3bar4MethE38.private_extern __ZTIN3foo3bar4MethE39__ZTIN3foo3bar4MethE:40  retq41 42.globl __ZTSN3foo3bar4MethE43.weak_def_can_be_hidden __ZTSN3foo3bar4MethE44.private_extern __ZTSN3foo3bar4MethE45__ZTSN3foo3bar4MethE:46  retq47