Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist17.C
blob: 6ff468989e0b84dca5c24eb8cf9ffab1f6f0df04 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
void
f
(
int
i
);
int
main
()
{
f
({
42.0
});
// { dg-error "narrowing" }
return
{
1.0
};
// { dg-error "narrowing" }
}