More __unknown_anytype work.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129269 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/unknown-anytype.cpp b/test/CodeGenCXX/unknown-anytype.cpp
index fdf5fab..06b6490 100644
--- a/test/CodeGenCXX/unknown-anytype.cpp
+++ b/test/CodeGenCXX/unknown-anytype.cpp
@@ -55,3 +55,22 @@
   // CHECK: call void @test7_any({{%.*}}* sret {{%.*}}, i32 5)
   return (Test7) test7_any(5);
 }
+
+struct Test8 {
+  __unknown_anytype foo();
+  __unknown_anytype foo(int);
+
+  void test();
+};
+void Test8::test() {
+  (int) foo();
+  (int) foo(5);
+  (float) this->foo();
+  (float) this->foo(5);
+}
+void test8(Test8 *p) {
+  (double) p->foo();
+  (double) p->foo(5);
+  (bool) (*p).foo();
+  (bool) (*p).foo(5);
+}