xref: /llvm-project/compiler-rt/test/asan/TestCases/interface_test.cpp (revision 673dc3d4a0b0fbb3b9b34ae2ecbfa522627fe582)
1 // Check that user may include ASan interface header.
2 // RUN: %clang_asan %s -o %t && %run %t
3 // RUN: %clang_asan -x c %s -o %t && %run %t
4 // RUN: %clang %s -pie -o %t && %run %t
5 // RUN: %clang -x c %s -pie -o %t && %run %t
6 #include <sanitizer/asan_interface.h>
7 
main()8 int main() {
9   return 0;
10 }
11