Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
enum1.C
blob: 9685f6a04e330ce1865d3f6f978fe0011b0e296d [
file
] [
log
] [
blame
]
// { dg-do run }
extern
"C"
void
abort
();
struct
A
{
enum
{
a
=
3
}*
p
;
int
f
()
{
return
(
int
)
a
;
}
};
int
main
()
{
A a
;
if
(
a
.
f
()
!=
3
)
abort
();
}