From: Daniel Dunbar Date: Tue, 10 Aug 2010 19:32:44 +0000 (+0000) Subject: tests: Tests which include system headers must use the driver, not -cc1. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea901ae53481064fda663ec028202101a4045c78;p=clang tests: Tests which include system headers must use the driver, not -cc1. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110708 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/PCH/cxx-typeid.cpp b/test/PCH/cxx-typeid.cpp index 164b4bafe0..b20b17af27 100644 --- a/test/PCH/cxx-typeid.cpp +++ b/test/PCH/cxx-typeid.cpp @@ -1,8 +1,8 @@ // Test this without pch. -// RUN: %clang_cc1 -include %S/cxx-typeid.h -fsyntax-only -verify %s +// RUN: %clang -include %S/cxx-typeid.h -fsyntax-only -verify %s -// RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-typeid.h -// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// RUN: %clang -ccc-pch-is-pch -x c++-header -o %t.gch %S/cxx-typeid.h +// RUN: %clang -ccc-pch-is-pch -include %t -fsyntax-only -Xclang -verify %s void f() { (void)typeid(int);