diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/t32a.C')
-rwxr-xr-x | 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 100755 index 0000000..13dfda1 --- /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 |