OSDN Git Service

PR c++/27689
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / ttp18.C
diff --git a/gcc/testsuite/g++.dg/template/ttp18.C b/gcc/testsuite/g++.dg/template/ttp18.C
new file mode 100644 (file)
index 0000000..095c07f
--- /dev/null
@@ -0,0 +1,10 @@
+template <template <typename> class T>
+void f(T<int>) {}
+
+template <typename T>
+union U {};
+
+void g() {
+  f(U<int>());
+}
+