Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wnarrowing7.C
blob: 099fdfb7d8167a205163f936ce7b0e332d05e078 [
file
] [
log
] [
blame
]
// PR c++/57891
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-narrowing" }
template
<
unsigned
int
>
struct
A
{};
A
<-
1
>
a
;
template
<
signed
char
>
struct
B
{};
B
<
1000
>
b
;
// { dg-warning "overflow" }