New test case

From-SVN: r28693
This commit is contained in:
Martin v. Löwis 1999-08-13 07:25:31 +00:00
parent ea1637e9e5
commit a9729c43a0

View File

@ -0,0 +1,21 @@
// Postfix expression must be evaluated even if accessing a static member.
// execution test - XFAIL *-*-*
struct S
{
static int i;
S* foo();
};
S* S::foo(){
i = 0;
return this;
};
int S::i = 1;
int main(void)
{
S * s = new S;
int k=(s->foo())->i;
return k;
}