summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb105.C
blob: 400b15b954a0b66b2a6141f8875e6e6adb5763ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
template< class T >
void    sort( T* t, int n )
        {
            struct
/*line5*/   {
                int     operator()(T i, T j)
                        {
                            return (i < j) ? -1 : ((j < i) ? 1 : 0) ;
                        }
            } c ;
            sort(t, n, c, 0) ;
        }