Michal Gorny | 7cfe480 | 2016-10-10 12:23:40 +0000 | [diff] [blame] | 1 | // Test that -print-libgcc-file-name correctly respects -rtlib=compiler-rt. |
| 2 | |
| 3 | // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name 2>&1 \ |
| 4 | // RUN: --target=x86_64-pc-linux \ |
| 5 | // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-X8664 %s |
| 6 | // CHECK-CLANGRT-X8664: libclang_rt.builtins-x86_64.a |
| 7 | |
| 8 | // RUN: %clang -rtlib=compiler-rt -print-libgcc-file-name 2>&1 \ |
| 9 | // RUN: --target=i686-pc-linux \ |
| 10 | // RUN: | FileCheck --check-prefix=CHECK-CLANGRT-I686 %s |
| 11 | // CHECK-CLANGRT-I686: libclang_rt.builtins-i686.a |