2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / init8.C
blob0ccf4512ee08c094c7257fe4189fa97d57ecc5c1
1 // { dg-do assemble  }
2 // GROUPS passed initialization
3 // init file
4 // From: kol@world.std.com (Nikolay Yatsenko)
5 // Date:     Wed, 27 Jan 1993 16:39:13 -0500
6 // Subject:  g++ bug
7 // Message-ID: <199301272139.AA25514@world.std.com>
10 const int ic = 1;
11 void f(int& arg)
12 { // { dg-error "" } argument 1
13         if (arg) ;
15 const int& icr = ic;
17 int main(void)
19   f(icr);   // g++ does not give error here// { dg-error "" } .*
21   return 0;