xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/builtin-recursive.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-unknown-unknown -nostdsysteminc -nobuiltininc -isystem %S/Inputs -emit-llvm-only %s
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc // This used to cause a read past the end of a global variable.
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc #include <stdio.h>
6*0a6a1f1dSLionel Sambuc 
testcase(void)7*0a6a1f1dSLionel Sambuc void testcase(void) {
8*0a6a1f1dSLionel Sambuc   vprintf(0, 0);
9*0a6a1f1dSLionel Sambuc }
10*0a6a1f1dSLionel Sambuc 
11