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
Fix typo in test case
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
static16.C
blob
0fbaea86b3b2677fabb84e78db08657e8dbe0c1b
1
// Test that we properly evaluate the object parameter when accessing static
2
// members.
3
4
struct A {
5
static void f () {}
6
static int i;
7
};
8
9
int A::i;
10
11
int c = 0;
12
13
A g ()
14
{
15
++c;
16
return A();
17
}
18
19
int main ()
20
{
21
g().f();
22
g().i = 42;
23
return (c != 2);
24
}