repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Handle T_HRESULT types in CodeView records
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.martin
/
eval1.C
blob
e3eb3d6bef640ad8295b42f6c5fa2390528cf940
1
// { dg-do run }
2
// Postfix expression must be evaluated even if accessing a static member.
3
4
struct S
5
{
6
static int i;
7
S* foo();
8
};
9
10
S* S::foo(){
11
i = 0;
12
return this;
13
}
14
15
int S::i = 1;
16
int main(void)
17
{
18
S * s = new S;
19
int k=(s->foo())->i;
20
return k;
21
}