|
25 | 25 | ## Bitcode archive.
|
26 | 26 | # RUN: llvm-ar crs 4.a 1.bc 2.bc
|
27 | 27 |
|
28 |
| -# RUN: ld.lld -o 1 main.o 1.a |
| 28 | +# RUN: ld.lld -o 1 main.o 1.a --fortran-common |
29 | 29 | # RUN: llvm-objdump -D -j .data 1 | FileCheck --check-prefix=TEST1 %s
|
30 | 30 |
|
31 |
| -# RUN: ld.lld -o 2 main.o --start-lib 1.o strong_data_only.o --end-lib |
| 31 | +# RUN: ld.lld -o 2 main.o --start-lib 1.o strong_data_only.o --end-lib --fortran-common |
32 | 32 | # RUN: llvm-objdump -D -j .data 2 | FileCheck --check-prefix=TEST1 %s
|
33 | 33 |
|
34 | 34 | # RUN: ld.lld -o 3 main.o 2.a
|
|
45 | 45 | # RUN: ld.lld -o 7 main.o 2.o --start-lib 1.o strong_data_only.o --end-lib
|
46 | 46 | # RUN: llvm-objdump -D -j .data 7 | FileCheck --check-prefix=TEST2 %s
|
47 | 47 |
|
48 |
| -# RUN: not ld.lld -o 8 main.o 1.a strong_data_only.o 2>&1 | \ |
| 48 | +# RUN: not ld.lld -o 8 main.o 1.a strong_data_only.o --fortran-common 2>&1 | \ |
49 | 49 | # RUN: FileCheck --check-prefix=ERR %s
|
50 | 50 |
|
51 |
| -# RUN: not ld.lld -o 9 main.o --start-lib 1.o 2.o --end-lib strong_data_only.o 2>&1 | \ |
| 51 | +# RUN: not ld.lld -o 9 main.o --start-lib 1.o 2.o --end-lib strong_data_only.o --fortran-common 2>&1 | \ |
52 | 52 | # RUN: FileCheck --check-prefix=ERR %s
|
53 | 53 |
|
54 | 54 | # ERR: ld.lld: error: duplicate symbol: block
|
55 | 55 |
|
56 | 56 | # RUN: ld.lld --no-fortran-common -o 10 main.o 1.a
|
57 | 57 | # RUN: llvm-readobj --syms 10 | FileCheck --check-prefix=NFC %s
|
| 58 | +# RUN: ld.lld -o 10 main.o 1.a |
| 59 | +# RUN: llvm-readobj --syms 10 | FileCheck --check-prefix=NFC %s |
58 | 60 |
|
59 | 61 | # RUN: ld.lld --no-fortran-common -o 11 main.o --start-lib 1.o strong_data_only.o --end-lib
|
60 | 62 | # RUN: llvm-readobj --syms 11 | FileCheck --check-prefix=NFC %s
|
61 | 63 |
|
62 |
| -# RUN: ld.lld -o - main.o 4.a --lto-emit-asm | FileCheck --check-prefix=ASM %s |
| 64 | +# RUN: ld.lld -o - main.o 4.a --fortran-common --lto-emit-asm | FileCheck --check-prefix=ASM %s |
63 | 65 |
|
64 |
| -# RUN: ld.lld -o - main.o --start-lib 1.bc 2.bc --end-lib --lto-emit-asm | \ |
| 66 | +# RUN: ld.lld -o - main.o --start-lib 1.bc 2.bc --end-lib --fortran-common --lto-emit-asm | \ |
65 | 67 | # RUN: FileCheck --check-prefix=ASM %s
|
66 | 68 |
|
67 | 69 | ## COMMON overrides weak. Don't extract 3.bc which provides a weak definition.
|
|
0 commit comments