summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist17.C
blob: 86371e819699c7ec042aed396b22b88a9e5396fa (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-std=c++0x" }

void f(int i);

int main()
{
  f({42.0});			// { dg-error "narrowing" }
  return {1.0};			// { dg-error "narrowing" }
}