diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/cond1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/cond1.C | 26 |
1 files changed, 26 insertions, 0 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 000000000..64cc728fc --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/cond1.C @@ -0,0 +1,26 @@ +// { dg-do link } +// 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); +} + |