summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/builtin-recursive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/builtin-recursive.cc')
-rw-r--r--clang/test/CodeGen/builtin-recursive.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtin-recursive.cc b/clang/test/CodeGen/builtin-recursive.cc
new file mode 100644
index 0000000..81e9b9a
--- /dev/null
+++ b/clang/test/CodeGen/builtin-recursive.cc
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -nostdsysteminc -nobuiltininc -isystem Inputs -emit-llvm-only %s
+
+// This used to cause a read past the end of a global variable.
+
+#include <stdio.h>
+
+void testcase(void) {
+ vprintf(0, 0);
+}
+