Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;