Author: rsmith
Date: Tue Jun 25 17:37:05 2013
New Revision: 184887

URL: http://llvm.org/viewvc/llvm-project?rev=184887&view=rev
Log:
Make this test properly test both things it's trying to test.

Modified:
    cfe/trunk/test/Sema/vfprintf-valid-redecl.c

Modified: cfe/trunk/test/Sema/vfprintf-valid-redecl.c
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/vfprintf-valid-redecl.c?rev=184887&r1=184886&r2=184887&view=diff
==============================================================================
--- cfe/trunk/test/Sema/vfprintf-valid-redecl.c (original)
+++ cfe/trunk/test/Sema/vfprintf-valid-redecl.c Tue Jun 25 17:37:05 2013
@@ -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


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to