diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/CodeGen/builtin-recursive.cpp | |
parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) |
Notes
Diffstat (limited to 'test/CodeGen/builtin-recursive.cpp')
-rw-r--r-- | test/CodeGen/builtin-recursive.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/builtin-recursive.cpp b/test/CodeGen/builtin-recursive.cpp new file mode 100644 index 000000000000..7553a6e48f53 --- /dev/null +++ b/test/CodeGen/builtin-recursive.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -nostdsysteminc -nobuiltininc -isystem %S/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); +} + |