[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / mingw-sanitizers.c
blob618c1b7ba332ff680445f5b45755e9e0507326a9
1 // RUN: touch %t.a
2 // RUN: %clang --target=i686-windows-gnu %s -### -fsanitize=address -lcomponent %/t.a 2>&1 | FileCheck --check-prefixes=ASAN-ALL,ASAN-I686 -DINPUT=%/t.a %s
3 // RUN: %clang --target=x86_64-windows-gnu %s -### -fsanitize=address -lcomponent %/t.a 2>&1 | FileCheck --check-prefixes=ASAN-ALL,ASAN-X86_64 -DINPUT=%/t.a %s
4 //
5 // ASAN-ALL-NOT:"-l{{[^"]+"]}}"
6 // ASAN-ALL-NOT:"[[INPUT]]"
7 // ASAN-I686: "{{[^"]*}}libclang_rt.asan_dynamic.dll.a"
8 // ASAN-X86_64: "{{[^"]*}}libclang_rt.asan_dynamic.dll.a"
9 // ASAN-ALL: "-lcomponent"
10 // ASAN-ALL: "[[INPUT]]"
11 // ASAN-I686: "{{[^"]*}}libclang_rt.asan_dynamic.dll.a"
12 // ASAN-I686: "{{[^"]*}}libclang_rt.asan_dynamic_runtime_thunk.a"
13 // ASAN-I686: "--require-defined" "___asan_seh_interceptor"
14 // ASAN-I686: "--whole-archive" "{{[^"]*}}libclang_rt.asan_dynamic_runtime_thunk.a" "--no-whole-archive"
15 // ASAN-X86_64: "{{[^"]*}}libclang_rt.asan_dynamic.dll.a"
16 // ASAN-X86_64: "{{[^"]*}}libclang_rt.asan_dynamic_runtime_thunk.a"
17 // ASAN-X86_64: "--require-defined" "__asan_seh_interceptor"
18 // ASAN-X86_64: "--whole-archive" "{{[^"]*}}libclang_rt.asan_dynamic_runtime_thunk.a" "--no-whole-archive"
20 // RUN: %clang --target=x86_64-windows-gnu %s -### -fsanitize=vptr