Files
clang-p2996/compiler-rt/test/asan_abi/TestCases/linkstaticlibrary.cpp
Blue Gaston 11b7ce26f2 [ASanStableABI][Driver] Stop linking to asan dylib when stable abi is enabled
This patch enables linking of the static archive when fsanitize-stable-abi is set and stops linking to the asan dylib.

To link to the Address Sanitizer stable abi static library use "-fsanitize=address -fsanitize-stable-abi"

Updates a test with these flags.

rdar://112480890

Differential Revision: https://reviews.llvm.org/D156718
2023-08-02 11:30:29 -07:00

6 lines
282 B
C++

// RUN: %clang_asan_abi -O2 -c -fsanitize-stable-abi -fsanitize=address -O0 %s -o %t.o
// RUN: %clangxx -c %p/../../../lib/asan_abi/asan_abi.cpp -o asan_abi.o
// RUN: %clangxx -o %t %t.o -fsanitize-stable-abi -fsanitize=address asan_abi.o && %run %t 2>&1
int main() { return 0; }