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