]> granicus.if.org Git - clang/commitdiff
Make this test properly test both things it's trying to test.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 25 Jun 2013 22:37:05 +0000 (22:37 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 25 Jun 2013 22:37:05 +0000 (22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184887 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/vfprintf-valid-redecl.c

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