aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/local3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/template/local3.C')
-rw-r--r--gcc/testsuite/g++.dg/template/local3.C14
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 00000000000..4d6a5763b48
--- /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);
+ }
+