diff options
Diffstat (limited to 'lib/lsan/lit_tests/TestCases/sanity_check_pure_c.c')
-rw-r--r-- | lib/lsan/lit_tests/TestCases/sanity_check_pure_c.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/lsan/lit_tests/TestCases/sanity_check_pure_c.c b/lib/lsan/lit_tests/TestCases/sanity_check_pure_c.c new file mode 100644 index 000000000000..085412b47d55 --- /dev/null +++ b/lib/lsan/lit_tests/TestCases/sanity_check_pure_c.c @@ -0,0 +1,10 @@ +// Check that we can build C code. +// RUN: %clang_lsan %s -o %t +#ifdef __cplusplus +#error "This test must be built in C mode" +#endif + +int main() { + // FIXME: ideally this should somehow check that we don't have libstdc++ + return 0; +} |