1 // PR c++/45378 2 // { dg-options "-std=c++0x -pedantic-errors" } 3 main()4 int main() 5 { 6 int x { 22.2 }; // { dg-error "narrowing" } 7 } 8