aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/dynamic-list-extern.s
blob: dfeb31d4fc078a76a9cba4f10557af042e49b246 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# REQUIRES: x86

# Test that we can parse multiple externs.

# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o

# RUN: echo '{ \
# RUN:         extern "C" { \
# RUN:           foo; \
# RUN:         }; \
# RUN:         extern "C++" { \
# RUN:           bar; \
# RUN:         }; \
# RUN:       };' > %t.list
# RUN: ld.lld --dynamic-list %t.list %t.o -shared -o %t.so