Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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" }
}