From c86b984ea8ecb3e944dc3de48539f4c1f65851ea Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 18 Jan 2015 16:23:48 +0000 Subject: Vendor import of clang RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1): https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_360/rc1@226102 --- test/CodeGen/builtin-recursive.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/CodeGen/builtin-recursive.cpp (limited to 'test/CodeGen/builtin-recursive.cpp') diff --git a/test/CodeGen/builtin-recursive.cpp b/test/CodeGen/builtin-recursive.cpp new file mode 100644 index 0000000..7553a6e --- /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 + +void testcase(void) { + vprintf(0, 0); +} + -- cgit v1.1