diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/t32a.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/t32a.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t32a.C b/gcc/testsuite/g++.old-deja/g++.pt/t32a.C new file mode 100644 index 00000000000..13dfda122b6 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/t32a.C @@ -0,0 +1,10 @@ +// Build don't link: + +struct A { + int x; + int y (); + int z (); + int foo (int j); +}; + +int A::foo (int q) { return q + (this->*(x ? &A::y : &A::z)) (); } // gets bogus error |