Add a test for PR33820.

This would have found the issue.

llvm-svn: 308389
This commit is contained in:
Rafael Espindola 2017-07-18 22:52:44 +00:00
parent e8411cba87
commit 483506562c
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# REQUIRES: x86
# RUN: echo "FBSD_1.2 {};" > %t.ver
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld -shared %t.o -o %t.so --version-script=%t.ver
# RUN: llvm-nm --dynamic %t.so | FileCheck %s
.weak openat
openat:
openat@@FBSD_1.2 = openat
# CHECK: 0000000000001000 W openat
# CHECK-NEXT: 0000000000001000 W openat