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