summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash33.C
blob: 1d2227aa6f1dd034bac259221cf8e4fbbdf015b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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));
}