[cfe-commits] r166601 - /cfe/trunk/test/PCH/pch-dir.c

Douglas Gregor dgregor at apple.com
Wed Oct 24 10:49:01 PDT 2012


Author: dgregor
Date: Wed Oct 24 12:49:01 2012
New Revision: 166601

URL: http://llvm.org/viewvc/llvm-project?rev=166601&view=rev
Log:
Explicitly specify C++98 when building the C++ precompiled header for this test, so that the test will work on Windows.

Modified:
    cfe/trunk/test/PCH/pch-dir.c

Modified: cfe/trunk/test/PCH/pch-dir.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/pch-dir.c?rev=166601&r1=166600&r2=166601&view=diff
==============================================================================
--- cfe/trunk/test/PCH/pch-dir.c (original)
+++ cfe/trunk/test/PCH/pch-dir.c Wed Oct 24 12:49:01 2012
@@ -1,13 +1,11 @@
 // RUN: mkdir -p %t.h.gch
 // RUN: %clang -x c-header %S/pch-dir.h -o %t.h.gch/c.gch 
-// RUN: %clang -x c++-header %S/pch-dir.h -o %t.h.gch/cpp.gch 
+// RUN: %clang -x c++-header -std=c++98 %S/pch-dir.h -o %t.h.gch/cpp.gch 
 // RUN: %clang -include %t.h -fsyntax-only %s -Xclang -print-stats 2> %t.clog
 // RUN: FileCheck -check-prefix=C %s < %t.clog
-// RUN: %clang -x c++ -include %t.h -fsyntax-only %s -Xclang -print-stats 2> %t.cpplog
+// RUN: %clang -x c++ -include %t.h -std=c++98 -fsyntax-only %s -Xclang -print-stats 2> %t.cpplog
 // RUN: FileCheck -check-prefix=CPP %s < %t.cpplog
 
-// msvc(*-win32) implies -std=c++11, then it is expected to pass on msvc.
-// XFAIL: win32
 // RUN: not %clang -x c++ -std=c++11 -include %t.h -fsyntax-only %s 2> %t.cpp11log
 // RUN: FileCheck -check-prefix=CPP11 %s < %t.cpp11log
 





More information about the cfe-commits mailing list