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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
array6.C
blob
1ffc42a59d1ecd864896f5d3d67c839b2ec23fa2
1
// { dg-do run }
2
// { dg-options "-O1" }
3
4
int count = 0;
5
6
double foo () {
7
count++;
8
return 0;
9
}
10
11
double bar () {
12
const double x[1] = { foo() };
13
return x[0];
14
}
15
16
int main ()
17
{
18
bar();
19
if (count != 1)
20
return 1;
21
}