diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memtemp31.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/memtemp31.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp31.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp31.C new file mode 100644 index 000000000..ad6688718 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp31.C @@ -0,0 +1,16 @@ +// { dg-do link } +// GROUPS passed templates membertemplates +extern "C" int printf(const char*, ...); + +struct S +{ + template <class U> + void g(U u) + { this; } +}; + +int main() +{ + S s; + s.g(3); +} |