diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-12-22 18:13:07 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-12-22 18:13:07 +0000 |
commit | 08ef80f4b8fd49504983a536e16b8932ca898de2 (patch) | |
tree | 1911cc378b841e57bf70a1d87b5cf714dc1ec6fe /clang/test/CodeGen/builtin-recursive.cpp | |
parent | 84f89ccd4517557781c8277a5045bb85a2cdd238 (diff) | |
download | bcm5719-llvm-08ef80f4b8fd49504983a536e16b8932ca898de2.tar.gz bcm5719-llvm-08ef80f4b8fd49504983a536e16b8932ca898de2.zip |
Rename test.cc files to test.cpp.
The lit.cfg files only add .cpp to suffixes, so these tests used to never run,
oops. (Also tweak to of these tests in minor ways to make the actually pass.)
llvm-svn: 224718
Diffstat (limited to 'clang/test/CodeGen/builtin-recursive.cpp')
-rw-r--r-- | clang/test/CodeGen/builtin-recursive.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtin-recursive.cpp b/clang/test/CodeGen/builtin-recursive.cpp new file mode 100644 index 00000000000..67d8a44c907 --- /dev/null +++ b/clang/test/CodeGen/builtin-recursive.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -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); +} + |