1 // RUN: %clang_cc1 %s -fsyntax-only -pedantic -verify
2 // RUN: %clang_cc1 %s -fsyntax-only -pedantic -verify -DPREDECLARE
3 // expected-no-diagnostics
4 
5 #ifdef PREDECLARE
6 // PR16344
7 // Clang has defined 'vfprint' in builtin list. If the following line occurs before any other
8 // `vfprintf' in this file, and we getPreviousDecl()->getTypeSourceInfo() on it, then we will
9 // get a null pointer since the one in builtin list doesn't has valid TypeSourceInfo.
10 int vfprintf(void) { return 0; }
11 #endif
12 
13 // PR4290
14 // The following declaration is compatible with vfprintf, so we shouldn't
15 // warn.
16 int vfprintf();
17