Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
static2.C
blob: 099d9221089fd3564de79634b19ce54b3eb976d3 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// GROUPS passed static
class
A
{
public
:
void
member
(
void
)
{
}
static
void
staticMember
()
{
member
();
// illegal, no object for calling non-static method// { dg-error "" } .*
}
};
int
main
()
{
A
::
staticMember
();
}