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
/
for1.C
blob
88d79933bbc89e3145eaa10e9074218730bbe5b2
1
// { dg-do assemble }
2
3
int i;
4
int j;
5
6
struct S {
7
int operator()(int)
8
{
9
i = 1;
10
return i;
11
}
12
13
typedef int I;
14
15
void f() {
16
for (S I; false; )
17
;
18
int k = I(3);
19
}
20
};
21
22
typedef int J;
23
24
struct T {
25
int operator()(int)
26
{
27
j = 1;
28
return j;
29
}
30
31
void f() {
32
for (T J; false; )
33
;
34
int k = J(3);
35
}
36
};
37
38
int main()
39
{
40
S s;
41
s.f();
42
return 2 * i + j;
43
}