aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/cxx-method.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/cxx-method.cpp')
-rw-r--r--test/PCH/cxx-method.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/PCH/cxx-method.cpp b/test/PCH/cxx-method.cpp
new file mode 100644
index 000000000000..144406e7bdaf
--- /dev/null
+++ b/test/PCH/cxx-method.cpp
@@ -0,0 +1,7 @@
+// RUN: clang-cc -emit-pch %s -o %t
+
+struct S {
+ void m(int x);
+};
+
+void S::m(int x) { }