Merge branches/gcc-4_8-branch rev 210799.
[official-gcc.git] / gcc-4_8-branch / gcc / testsuite / g++.dg / vect / pr60836.cc
blob83bb1837531f280e22ccf38d59b1219c49e00387
1 // { dg-do compile }
3 int a, b;
4 typedef double (*NormFunc) (const int &);
5 int &
6 max (int &p1, int &p2)
8 if (p1 < p2)
9 return p2;
10 return p1;
13 struct A
15 int operator () (int p1, int p2)
17 return max (p1, p2);
20 template < class, class > double
21 norm_ (const int &)
23 char c, d;
24 A e;
25 for (; a; a++)
27 b = e (b, d);
28 b = e (b, c);
32 void
33 norm ()
35 static NormFunc f = norm_ < int, A >;
36 f = 0;
39 // { dg-final { cleanup-tree-dump "vect" } }