OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / init8.C
1 // Build don't link: 
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>
8
9
10 const int ic = 1;
11 void f(int& arg)
12 { // ERROR - argument 1
13         if (arg) ;
14 }
15 const int& icr = ic;
16
17 int main(void)
18 {
19   f(icr);   // g++ does not give error here// ERROR - .*
20
21   return 0;
22 }