From cdc6e2c50f96119bdc4c1205ff5901ca82ec8357 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Wed, 29 Jan 2020 18:17:43 -0600 Subject: add old compiler with ARM support --- gcc_arm/testsuite/g++.old-deja/g++.bob/template3.C | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 gcc_arm/testsuite/g++.old-deja/g++.bob/template3.C (limited to 'gcc_arm/testsuite/g++.old-deja/g++.bob/template3.C') diff --git a/gcc_arm/testsuite/g++.old-deja/g++.bob/template3.C b/gcc_arm/testsuite/g++.old-deja/g++.bob/template3.C new file mode 100755 index 0000000..7aca6ed --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.bob/template3.C @@ -0,0 +1,49 @@ +// Build don't link: +// prms-id: 9979 + +template < class Referencee > +class Referencer +{ +public: + Referencer() {} +}; + +template +class List +{ +public: + List() {} +}; + +template +class Dictionary +{ +public: + Dictionary() : i_buckets (new List[1234]) {} + ~Dictionary() { delete [] i_buckets; } + + List * i_buckets; +}; + +class Exchangeable {}; +class ExchangeableHandle {}; + +class ExchangeableList + : public Dictionary, ExchangeableHandle> +{ +public: + ExchangeableList(int size=0); +}; + +class ObjectExchange +{ +public: + ObjectExchange() {}; + + ExchangeableList i_theWatchList; // Instruments being monitored +}; + +int +main() +{ +} -- cgit v1.2.3