Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Driver/cl-link.c @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | c4bab56944e8 |
children |
comparison
equal
deleted
inserted
replaced
237:c80f45b162ad | 252:1f2b6ac9f198 |
---|---|
33 // RUN: %clang_cl /LDd -fuse-ld=link -### /Tc%s 2>&1 | FileCheck --check-prefix=DLL %s | 33 // RUN: %clang_cl /LDd -fuse-ld=link -### /Tc%s 2>&1 | FileCheck --check-prefix=DLL %s |
34 // DLL: link.exe | 34 // DLL: link.exe |
35 // "-dll" | 35 // "-dll" |
36 | 36 |
37 // RUN: %clang_cl -m32 -arch:IA32 --target=i386-pc-win32 /LD /Tc%s -fuse-ld=link -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN-DLL %s | 37 // RUN: %clang_cl -m32 -arch:IA32 --target=i386-pc-win32 /LD /Tc%s -fuse-ld=link -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN-DLL %s |
38 // RUN: %clang_cl -m32 -arch:IA32 --target=i386-pc-win32 /LDd /Tc%s -fuse-ld=link -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN-DLL %s | 38 // RUN: not %clang_cl -m32 -arch:IA32 --target=i386-pc-win32 /LDd /Tc%s -fuse-ld=link -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN-DLL %s |
39 // ASAN-DLL: link.exe | 39 // ASAN-DLL: link.exe |
40 // ASAN-DLL: "-dll" | 40 // ASAN-DLL: "-dll" |
41 // ASAN-DLL: "-debug" | 41 // ASAN-DLL: "-debug" |
42 // ASAN-DLL: "-incremental:no" | 42 // ASAN-DLL: "-incremental:no" |
43 // ASAN-DLL: "{{.*}}clang_rt.asan_dll_thunk-i386.lib" | 43 // ASAN-DLL: "{{.*}}clang_rt.asan_dll_thunk-i386.lib" |
46 // RUN: %clang_cl /Zi /Tc%s -fuse-ld=link -### 2>&1 | FileCheck --check-prefix=DEBUG %s | 46 // RUN: %clang_cl /Zi /Tc%s -fuse-ld=link -### 2>&1 | FileCheck --check-prefix=DEBUG %s |
47 // DEBUG: link.exe | 47 // DEBUG: link.exe |
48 // DEBUG: "-debug" | 48 // DEBUG: "-debug" |
49 | 49 |
50 // Don't pass through /libpath: if it's not after a /link flag: | 50 // Don't pass through /libpath: if it's not after a /link flag: |
51 // RUN: %clang_cl /Tc%s /libpath:foo -fuse-ld=link -### /link /libpath:bar 2>&1 | FileCheck --check-prefix=LIBPATH %s | 51 // RUN: not %clang_cl /Tc%s /libpath:foo -fuse-ld=link -### /link /libpath:bar 2>&1 | FileCheck --check-prefix=LIBPATH %s |
52 // LIBPATH: error: no such file or directory: '/libpath:foo' | 52 // LIBPATH: error: no such file or directory: '/libpath:foo' |
53 // LIBPATH: libpath:bar | 53 // LIBPATH: libpath:bar |
54 | 54 |
55 // PR27234 | 55 // PR27234 |
56 // RUN: %clang_cl /Tc%s nonexistent.obj -fuse-ld=link -### /link /libpath:somepath 2>&1 | FileCheck --check-prefix=NONEXISTENT %s | 56 // RUN: %clang_cl /Tc%s nonexistent.obj -fuse-ld=link -### /link /libpath:somepath 2>&1 | FileCheck --check-prefix=NONEXISTENT %s |
63 // NONEXISTENT: link.exe | 63 // NONEXISTENT: link.exe |
64 // NONEXISTENT: nonexistent | 64 // NONEXISTENT: nonexistent |
65 | 65 |
66 // RUN: %clang_cl /Tc%s -fuse-ld=lld -### 2>&1 | FileCheck --check-prefix=USE_LLD %s | 66 // RUN: %clang_cl /Tc%s -fuse-ld=lld -### 2>&1 | FileCheck --check-prefix=USE_LLD %s |
67 // USE_LLD: lld-link | 67 // USE_LLD: lld-link |
68 | |
69 // RUN: %clang_cl -m32 -arch:IA32 --target=i386-pc-win32 /Tc%s -fuse-ld=link -### -fsanitize=address 2>&1 | FileCheck --check-prefix=INFER-LINK %s | |
70 // INFER-LINK: link.exe | |
71 // INFER-LINK: /INFERASANLIBS:NO | |
72 | |
73 // RUN: %clang_cl -m32 -arch:IA32 --target=i386-pc-win32 /Tc%s -fuse-ld=lld -### -fsanitize=address 2>&1 | FileCheck --check-prefix=INFER-LLD %s | |
74 // INFER-LLD: lld-link | |
75 // INFER-LLD-NOT: INFERASANLIBS |