diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-08-02 06:44:33 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-08-02 06:44:33 +0000 |
commit | d7cf46ac0e48f33302b740c0300791390618a27a (patch) | |
tree | 353ea6fa7ff09dda3994ba0d05af2e22ab3aac6d /gcc | |
parent | 09dd27d41736334d78a46c06b3fe12cbc19335b6 (diff) | |
download | gcc-d7cf46ac0e48f33302b740c0300791390618a27a.zip gcc-d7cf46ac0e48f33302b740c0300791390618a27a.tar.gz gcc-d7cf46ac0e48f33302b740c0300791390618a27a.tar.bz2 |
New tests
From-SVN: r28393
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/cond3.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/cond4.C | 31 |
2 files changed, 32 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond3.C b/gcc/testsuite/g++.old-deja/g++.other/cond3.C index e5563a6..56867aa 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/cond3.C +++ b/gcc/testsuite/g++.old-deja/g++.other/cond3.C @@ -3,7 +3,7 @@ class Wtransf {}; -const Wtransf Identity2k; +const Wtransf Identity2 = Wtransf (); class HELPER { public: diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond4.C b/gcc/testsuite/g++.old-deja/g++.other/cond4.C new file mode 100644 index 0000000..5c97565 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/cond4.C @@ -0,0 +1,31 @@ +// Build don't link: +// Origin: Loring Holden <lsh@cs.brown.edu> + +template <class V> +class _vec3d +{ + public: + double _x, _y; +}; + +class Wvec : public _vec3d<int> { }; + +template <class T> +class TDI { + public: + T &get(); +}; + +template <class T> +class hashvar { + public : + T _val; + TDI<T> *val() const; + T get() const { return true ? val()->get() : _val; } +}; + +int +main() { + hashvar<Wvec> CONSTRAINT_DIR; + CONSTRAINT_DIR.get(); +} |