Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wnarrowing9.C
blob: bc8a736ecb9ba58bc00d51be05018ba015bc12a6 [
file
] [
log
] [
blame
]
// PR c++/57891
// { dg-do compile { target c++11 } }
// N is value-dependent, don't warn.
template
<
int
N
>
struct
S
{
char
a
[
N
];
};
// { dg-bogus "narrowing conversion" }
S
<
1
>
s
;