Forward port r208464 from google/gcc-4_8.
[official-gcc.git] / main / gcc / testsuite / g++.dg / cpp0x / regress / array1.C
blob629ab4103f58c3da60ab484ec73a5fd58fedc8ca
1 // PR c++/47808
2 // { dg-options -std=c++0x }
4 template <typename T>
5 inline T abs (T const & x) { return x; }
7 template <typename T>
8 void f (T)
10   typedef int ai[(abs(0.1) > 0) ? 1 : -1];
13 int main()
15   f(1);