Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wnarrowing5.C
blob: d2abf03313e59d60e3cd8a0290eca5b89d6dc9d6 [
file
] [
log
] [
blame
]
// PR c++/85045
// { dg-do compile { target c++11 } }
typedef
struct
tt
{
unsigned
short
h
;
}
tt
;
void
mainScreen
(
float
a
)
{
tt numlrect
=
{
int
(
100
/
a
)};
// { dg-error "narrowing conversion" }
}