[cfe-commits] r115247 - in /cfe/trunk/test/PCH: cmdline-include.c cmdline-include1.h cmdline-include2.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Sep 30 17:00:18 PDT 2010
Author: akirtzidis
Date: Thu Sep 30 19:00:18 2010
New Revision: 115247
URL: http://llvm.org/viewvc/llvm-project?rev=115247&view=rev
Log:
Add test case I forgot for r115159 (support implicit includes along with PCH).
Added:
cfe/trunk/test/PCH/cmdline-include.c
cfe/trunk/test/PCH/cmdline-include1.h
cfe/trunk/test/PCH/cmdline-include2.h
Added: cfe/trunk/test/PCH/cmdline-include.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/cmdline-include.c?rev=115247&view=auto
==============================================================================
--- cfe/trunk/test/PCH/cmdline-include.c (added)
+++ cfe/trunk/test/PCH/cmdline-include.c Thu Sep 30 19:00:18 2010
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -include %S/cmdline-include1.h -x c-header %S/cmdline-include2.h -emit-pch -o %t
+// RUN: %clang_cc1 %s -include-pch %t -fsyntax-only -verify
+// RUN: %clang_cc1 -x c-header %S/cmdline-include1.h -emit-pch -o %t
+// RUN: %clang_cc1 %s -include-pch %t -include %S/cmdline-include2.h -fsyntax-only -verify
+
+int g = x1 + x2;
Added: cfe/trunk/test/PCH/cmdline-include1.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/cmdline-include1.h?rev=115247&view=auto
==============================================================================
--- cfe/trunk/test/PCH/cmdline-include1.h (added)
+++ cfe/trunk/test/PCH/cmdline-include1.h Thu Sep 30 19:00:18 2010
@@ -0,0 +1 @@
+enum { x1 };
Added: cfe/trunk/test/PCH/cmdline-include2.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/cmdline-include2.h?rev=115247&view=auto
==============================================================================
--- cfe/trunk/test/PCH/cmdline-include2.h (added)
+++ cfe/trunk/test/PCH/cmdline-include2.h Thu Sep 30 19:00:18 2010
@@ -0,0 +1 @@
+enum { x2 };
More information about the cfe-commits
mailing list