aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/array27.C
blob: 95680dd15fd8eed46864f210d35edb7bb91526f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/47808
// { dg-options "" }

template <typename T>
inline T abs (T const & x) { return x; }

template <typename T>
void f (T)
{
  typedef int ai[(abs(0.1) > 0) ? 1 : -1];
}

int main()
{
  f(1);
}