diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp30.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp30.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp30.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp30.C new file mode 100755 index 0000000..923ec85 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp30.C @@ -0,0 +1,17 @@ +// Build don't run: +// GROUPS passed templates membertemplates +extern "C" int printf(const char*, ...); + +template <class X> +struct S +{ + template <class U> + void g(U u) { this; } +}; + + +int main() +{ + S<char*> s; + s.g(3); +} |