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