summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/arrow-operator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/arrow-operator.cpp')
-rw-r--r--test/SemaCXX/arrow-operator.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/SemaCXX/arrow-operator.cpp b/test/SemaCXX/arrow-operator.cpp
index 29b23ed..6535a0a 100644
--- a/test/SemaCXX/arrow-operator.cpp
+++ b/test/SemaCXX/arrow-operator.cpp
@@ -23,3 +23,16 @@ void f(C &c, D& d, E& e) {
d->f();
e->f(); // expected-error{{incomplete definition of type}}
}
+
+// rdar://8875304
+namespace rdar8875304 {
+class Point {};
+class Line_Segment{ public: Line_Segment(const Point&){} };
+class Node { public: Point Location(){ Point p; return p; } };
+
+void f()
+{
+ Node** node1;
+ Line_Segment(node1->Location()); // expected-error {{not a structure or union}}
+}
+}
OpenPOWER on IntegriCloud