From bb67b827d94b26a1cd42a02a81798c5a9c83040c Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 29 Jul 2009 18:40:24 +0000 Subject: Patch to provide cast of objects in member access excpression, if needed, and remove some ir-gen code now unnencessary. llvm-svn: 77490 --- clang/test/CodeGenCXX/constructor-init.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'clang/test/CodeGenCXX/constructor-init.cpp') diff --git a/clang/test/CodeGenCXX/constructor-init.cpp b/clang/test/CodeGenCXX/constructor-init.cpp index c46a561c308..a9d5c289e26 100644 --- a/clang/test/CodeGenCXX/constructor-init.cpp +++ b/clang/test/CodeGenCXX/constructor-init.cpp @@ -38,8 +38,10 @@ struct N : M , P, Q { printf("iQ = %d\n", iQ); printf("iP = %d\n", iP); printf("iM = %d\n", iM); - printf("iQ = %d\n", (*this).iQ); - printf("iP = %d\n", ((*this)).iP); + // FIXME. We don't yet support this syntax. + // printf("iQ = %d\n", (*this).iQ); + printf("iQ = %d\n", this->iQ); + printf("iP = %d\n", this->iP); printf("iM = %d\n", this->iM); } float ld; -- cgit v1.2.3