summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/incomplete-call.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/incomplete-call.cpp')
-rw-r--r--clang/test/SemaCXX/incomplete-call.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/incomplete-call.cpp b/clang/test/SemaCXX/incomplete-call.cpp
index 08bfdefd624..3ce898a76f2 100644
--- a/clang/test/SemaCXX/incomplete-call.cpp
+++ b/clang/test/SemaCXX/incomplete-call.cpp
@@ -40,3 +40,10 @@ void g() {
(b.*mfp)(); // expected-error {{calling function with incomplete return type 'struct A'}}
}
+
+
+struct C; // expected-note{{forward declaration}}
+
+void test_incomplete_object_call(C& c) {
+ c(); // expected-error{{incomplete type in call to object of type}}
+}
OpenPOWER on IntegriCloud