summaryrefslogtreecommitdiff
path: root/test/lsan/TestCases/sanity_check_pure_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/lsan/TestCases/sanity_check_pure_c.c')
-rw-r--r--test/lsan/TestCases/sanity_check_pure_c.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lsan/TestCases/sanity_check_pure_c.c b/test/lsan/TestCases/sanity_check_pure_c.c
new file mode 100644
index 0000000000000..085412b47d552
--- /dev/null
+++ b/test/lsan/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;
+}