diff options
author | Alexandre Oliva <oliva@dcc.unicamp.br> | 1998-11-26 20:03:21 +0000 |
---|---|---|
committer | Alexandre Oliva <oliva@gcc.gnu.org> | 1998-11-26 20:03:21 +0000 |
commit | be537f34b0d0b4800aa0c53582b3adf1d1a729c1 (patch) | |
tree | 5e1561ace1ab5638ce05213e8f0ff429d7993071 /gcc | |
parent | bc4f0b0a26d87fb137f9e0f4708f672498d98b01 (diff) | |
download | gcc-be537f34b0d0b4800aa0c53582b3adf1d1a729c1.zip gcc-be537f34b0d0b4800aa0c53582b3adf1d1a729c1.tar.gz gcc-be537f34b0d0b4800aa0c53582b3adf1d1a729c1.tar.bz2 |
* g++.old-deja/g++.pt/instantiate6.C: New test.
From-SVN: r23911
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/instantiate6.C | 26 |
2 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5dedf85..4780eff 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 1998-11-27 Alexandre Oliva <oliva@dcc.unicamp.br> + * 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 0000000..ff0114d --- /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 <s3824888@techst02.technion.ac.il> +// causes linker error - XFAIl *-*-* + +template <class T> +class foo{ +public: + void g(); + void h(); +}; + +template <class T> +void foo<T>::g() { + h(); +} + +template <class T> +void foo<T>::h() { +} + +int main() { + foo<int> f; + f.g(); +} |