diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash33.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/crash33.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash33.C b/gcc/testsuite/g++.old-deja/g++.other/crash33.C new file mode 100644 index 000000000..1d2227aa6 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/crash33.C @@ -0,0 +1,13 @@ +// { dg-do assemble } +// Origin: Jakub Jelinek <jakub@redhat.com> + +template <class T> +inline const T& bar(const T& a, const T& b) +{ + return a < b ? b : a; +} + +int foo(void) +{ + return bar(sizeof(int), sizeof(long)); +} |