diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/local3.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/local3.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/local3.C b/gcc/testsuite/g++.dg/template/local3.C new file mode 100644 index 000000000..5a01a4495 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/local3.C @@ -0,0 +1,14 @@ + template<class T> + void f(const T&) + { + struct B { + + void g (T); + }; + B b; + } + void g() + { + f(42); + } + |