diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-03 00:23:55 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-03 00:23:55 +0000 |
commit | 36096ac71b83a57443dad20f64f4b2f602c94cf1 (patch) | |
tree | 058e3ab0bafb49afac59b65a9f80755a59837715 | |
parent | 3ebd9bc487f5268b8fefe1bb1f362d29176a6eb6 (diff) | |
download | gcc-36096ac71b83a57443dad20f64f4b2f602c94cf1.zip gcc-36096ac71b83a57443dad20f64f4b2f602c94cf1.tar.gz gcc-36096ac71b83a57443dad20f64f4b2f602c94cf1.tar.bz2 |
Readd file
From-SVN: r29071
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/cond1.C | 26 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/cond2.C | 33 |
2 files changed, 50 insertions, 9 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond1.C b/gcc/testsuite/g++.old-deja/g++.other/cond1.C new file mode 100644 index 0000000..c025beb --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/cond1.C @@ -0,0 +1,26 @@ +// Build don't run: +// Origin: Mark Mitchell <mark@codesourcery.com> + +template <class T> +void f (T&) ; + +template <> +void f (void (&)()) +{ +} + +void g () +{ +} + +void h () +{ +} + +bool b; + +int main () +{ + f (b ? g : h); +} + diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond2.C b/gcc/testsuite/g++.old-deja/g++.other/cond2.C index a83273f..c025beb 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/cond2.C +++ b/gcc/testsuite/g++.old-deja/g++.other/cond2.C @@ -1,11 +1,26 @@ -// Build don't link: -// Origin: Loring Holden <lsh@cs.brown.edu> +// Build don't run: +// Origin: Mark Mitchell <mark@codesourcery.com> -class Wpt {}; +template <class T> +void f (T&) ; + +template <> +void f (void (&)()) +{ +} + +void g () +{ +} + +void h () +{ +} + +bool b; + +int main () +{ + f (b ? g : h); +} -class RAYhit { - protected: - Wpt _nearpt; - public: - Wpt surf () const { return true ? Wpt(): _nearpt; } -}; |