aboutsummaryrefslogtreecommitdiff
path: root/final/ABI-Testsuite/test/mangling/tps.xpp
diff options
context:
space:
mode:
Diffstat (limited to 'final/ABI-Testsuite/test/mangling/tps.xpp')
-rwxr-xr-xfinal/ABI-Testsuite/test/mangling/tps.xpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/final/ABI-Testsuite/test/mangling/tps.xpp b/final/ABI-Testsuite/test/mangling/tps.xpp
new file mode 100755
index 00000000..71db392c
--- /dev/null
+++ b/final/ABI-Testsuite/test/mangling/tps.xpp
@@ -0,0 +1,9 @@
+// This file is distributed under the University of Illinois Open Source License.
+// See LICENSE.TXT for details.
+// RUN: cxx_compiler -c %s -o %t.o
+// RUN: bindump %t.o | FileCheck prefixes %s
+
+// CHECK-DAG: _Z4funcILi4EE4struIXT_EERKS1_
+template <int I> struct stru {};
+template <int I> stru<I> func(stru<I> const&);
+template <> stru<4> func<4>(stru<4> const&) { stru<4> w; return w; }