summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/regress/array1.C
blob: 629ab4103f58c3da60ab484ec73a5fd58fedc8ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/47808
// { dg-options -std=c++0x }

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);
}