Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / asan / TestCases / default_options.cpp
blob526dab6450e9bd67885195b6f651b55a5b2d5dd6
1 // RUN: %clangxx_asan -O2 %s -o %t
2 // RUN: %run %t 2>&1 | FileCheck %s
4 // FIXME: Doesn't work with DLLs
5 // XFAIL: win32-dynamic-asan
7 const char *kAsanDefaultOptions = "verbosity=1 help=1";
9 // Required for dyld macOS 12.0+
10 #if (__APPLE__)
11 __attribute__((weak))
12 #endif
13 __attribute__((no_sanitize_address))
14 extern "C" const char *
15 __asan_default_options() {
16 // CHECK: Available flags for AddressSanitizer:
17 return kAsanDefaultOptions;
20 int main() {
21 return 0;