xref: /llvm-project/compiler-rt/test/lsan/TestCases/sanity_check_pure_c.c (revision 7eeef85bd40e765d15313c1809cbad4b31dcff4f)
1 // Check that we can build C code.
2 // RUN: %clang_lsan %s -o %t
3 #ifdef __cplusplus
4 #error "This test must be built in C mode"
5 #endif
6 
main()7 int main() {
8   // FIXME: ideally this should somehow check that we don't have libstdc++
9   return 0;
10 }
11