From be537f34b0d0b4800aa0c53582b3adf1d1a729c1 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 26 Nov 1998 20:03:21 +0000 Subject: [PATCH] * g++.old-deja/g++.pt/instantiate6.C: New test. From-SVN: r23911 --- gcc/testsuite/ChangeLog | 2 ++ .../g++.old-deja/g++.pt/instantiate6.C | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5dedf85237d..4780eff6ad5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 1998-11-27 Alexandre Oliva + * g++.old-deja/g++.pt/instantiate6.C: New test. + * g++.old-deja/g++.pt/static6.C: New test. * g++.old-deja/g++.pt/decl2.C: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C b/gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C new file mode 100644 index 00000000000..ff0114d1a3c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C @@ -0,0 +1,26 @@ +// Build then link: +// Special g++ Options: -frepo + +// Simplified from testcase by Erez Louidor Lior +// causes linker error - XFAIl *-*-* + +template +class foo{ +public: + void g(); + void h(); +}; + +template +void foo::g() { + h(); +} + +template +void foo::h() { +} + +int main() { + foo f; + f.g(); +} -- 2.30.2