diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-10-24 17:49:01 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-10-24 17:49:01 +0000 |
commit | b512a14f5537c11cce818ca408342ca2b5889b8d (patch) | |
tree | f8d0c88310b5b5f6258ca8e036fc4ed5389b1653 /test/PCH | |
parent | 1bed9b7678a9a7d91832926a69411e7fc5be2825 (diff) | |
download | clang-b512a14f5537c11cce818ca408342ca2b5889b8d.tar.gz |
Explicitly specify C++98 when building the C++ precompiled header for this test, so that the test will work on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/PCH')
-rw-r--r-- | test/PCH/pch-dir.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/PCH/pch-dir.c b/test/PCH/pch-dir.c index 32dcc10364..73a7ba9003 100644 --- a/test/PCH/pch-dir.c +++ b/test/PCH/pch-dir.c @@ -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 |