From d559d91dfb31635043925860b67c1e243a71ad13 Mon Sep 17 00:00:00 2001 From: "Reid M. Pinchback" Date: Thu, 3 Sep 1998 22:30:30 +0000 Subject: [PATCH] explicit72.C: ensure that char and (un)signed char are different types for template... * g++.old-deja/g++.pt/explicit72.C: ensure that char and (un)signed char are different types for template specialization purposes. From-SVN: r22226 --- gcc/testsuite/ChangeLog | 6 ++++++ .../g++.old-deja/g++.pt/explicit72.C | 21 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/explicit72.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6d278b33e88b..47a6f5015364 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +1998-09-04 Reid M. Pinchback , Alexandre Oliva + + * g++.old-deja/g++.pt/explicit72.C: ensure that char and + (un)signed char are different types for template specialization + purposes. + Thu Sep 3 00:40:32 1998 Ovidiu Predescu * lib/{objc.exp,objc-torture.exp}: New files for objc testing harness. diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit72.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit72.C new file mode 100644 index 000000000000..bc9edfb4de73 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/explicit72.C @@ -0,0 +1,21 @@ +// Build don't link: +// Contributed by Reid M. Pinchback +// Adapted by Alexandre Oliva +// plain char, signed char and unsigned char are distinct types + +template class bug {}; +template class bug { typedef char t; }; +template class bug { typedef unsigned char t; }; +template class bug { typedef signed char t; }; +template class bug { typedef char t; }; +template class bug { typedef unsigned char t; }; +template class bug { typedef signed char t; }; + +void foo() { + bug::t(); + bug::t(); + bug::t(); + bug::t(); + bug::t(); + bug::t(); +}