summaryrefslogtreecommitdiff
path: root/clang/test/PCH/cxx-functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/PCH/cxx-functions.cpp')
-rw-r--r--clang/test/PCH/cxx-functions.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/PCH/cxx-functions.cpp b/clang/test/PCH/cxx-functions.cpp
new file mode 100644
index 0000000..74df01a
--- /dev/null
+++ b/clang/test/PCH/cxx-functions.cpp
@@ -0,0 +1,10 @@
+// Test this without pch.
+// RUN: %clang_cc1 -include %S/cxx-functions.h -fsyntax-only -verify %s
+
+// RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-functions.h
+// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
+
+
+void test_foo() {
+ foo();
+}