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 Sambucvoid testcase(void) { 8*0a6a1f1dSLionel Sambuc vprintf(0, 0); 9*0a6a1f1dSLionel Sambuc } 10*0a6a1f1dSLionel Sambuc 11