fortran: Factor the evaluation of MINLOC/MAXLOC's BACK argument
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / overflow1.C
blobe295355c88fbd8d10f89aebf656f91c1d7df8043
1 // { dg-prune-output "-Woverflow" }
3 template <long long i>
4 struct Fib
6     static const long long value // { dg-error "overflow" }
7     = Fib<i-1>::value + Fib<i-2>::value; // { dg-error "overflow" }
8 };
10 template <>
11 struct Fib<0>
13    static const long long value = 0;
16 template <>
17 struct Fib<1>
19    static const long long value = 1;
22 int main()
24   return Fib<95>::value;