aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist52.C
blob: 3ca8781060c53cc73e0017fa99e82336e2f0bb09 (plain)
1
2
3
4
5
6
7
// PR c++/45378
// { dg-do compile { target c++11 } }

int main()
{
   int x { 22.2 };		// { dg-error "narrowing" }
}