Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wnarrowing6.C
blob: 989d277cd00107c99c7d815a9322c76f6b30ea12 [
file
] [
log
] [
blame
]
// PR c++/57891
// { dg-do compile { target c++11 } }
template
<
unsigned
int
>
struct
A
{};
A
<-
1
>
a
;
// { dg-error "narrowing conversion" }
template
<
signed
char
>
struct
B
{};
B
<
1000
>
b
;
// { dg-error "narrowing conversion" }