diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/ptrmem3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/ptrmem3.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ptrmem3.C b/gcc/testsuite/g++.old-deja/g++.pt/ptrmem3.C new file mode 100644 index 000000000..039d5dc65 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/ptrmem3.C @@ -0,0 +1,12 @@ +// { dg-do assemble } + +template <class T> +struct S : public S<T*> {}; +template <> +struct S<int**> {}; + +void g() +{ + int S<int*>::*p; + int S<int>::*q = p; +} |