llvm-project/compiler-rt/test/rtsan/unrecognized_flags.cpp
Chris Apple 2e9b3316ee
[compiler-rt][rtsan] Introduce RTSAN_OPTIONS and flags (#107174)
This matches much of the boilerplate found in the other sanitizers.
2024-09-06 10:28:04 -07:00

12 lines
309 B
C++

// RUN: %clangxx -fsanitize=realtime %s -o %t
// RUN: RTSAN_OPTIONS="verbosity=1,asdf=1" %run %t 2>&1 | FileCheck %s
// UNSUPPORTED: ios
// Intent: Make sure we are respecting some basic common flags
int main() {
return 0;
// CHECK: WARNING: found 1 unrecognized flag(s):
// CHECK-NEXT: {{.*asdf*}}
}