2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / refs4.C
blobb87fa69e3a0013e724f972666caf6181ec4410c7
1 // { dg-do run  }
2 // GROUPS passed references
4 // execution test
6 int r;
8 const int& min(const int& tX, const int& tY)
10         return tX < tY ? tX : tY;
13 void foo(const int m, const int n)
15         if (m == 1 && n == 100)
16           /* OK */;
17         else
18           r = 1;
21 int main()
23         foo(min(2, 1), min(100, 200));
24         return r;