Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr40335.C
blob: bf335957e6046dca1df75bb406e0780febe2e81b [
file
] [
log
] [
blame
]
/* { dg-do run } */
extern
"C"
void
abort
(
void
);
int
main
(
void
)
{
int
i
=
-
1
;
switch
((
signed
char
)
i
)
{
case
255
:
/* { dg-warning "exceeds maximum value" } */
abort
();
default
:
break
;
}
}