1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o 3 4# RUN: echo 'foo { foo*; }; bar { *; };' > %t.ver 5# RUN: ld.lld --version-script %t.ver %t.o -shared -o %t.so --fatal-warnings 6# RUN: llvm-readelf --dyn-syms %t.so | FileCheck --check-prefix=FOO %s 7 8# RUN: echo 'foo { foo*; }; bar { f*; };' > %t.ver 9# RUN: ld.lld --version-script %t.ver %t.o -shared -o %t.so --fatal-warnings 10# RUN: llvm-readelf --dyn-syms %t.so | FileCheck --check-prefix=BAR %s 11 12## If both a non-* glob and a * match, non-* wins. 13## This is GNU linkers' behavior. We don't feel strongly this should be supported. 14# FOO: GLOBAL DEFAULT 7 foo@@foo 15 16# BAR: GLOBAL DEFAULT 7 foo@@bar 17 18.globl foo 19foo: 20