aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/nontype20.C
blob: e4aba322771abfe916595541ba0e70be3324eaf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/48003
// { dg-options "-fpermissive -w" }
// Test that we allow integer overflow in constant exprs with -fpermissive

template<int N>
struct test
{
  typedef test<N - 1> prior;
};

test<-2147483647-1> f;