aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/init8.C
blob: 6b52bdcdeea2770ae6a8eaecfb6ac4a8f864f971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Build don't link: 
// GROUPS passed initialization
// init file
// From: kol@world.std.com (Nikolay Yatsenko)
// Date:     Wed, 27 Jan 1993 16:39:13 -0500
// Subject:  g++ bug
// Message-ID: <199301272139.AA25514@world.std.com>


const int ic = 1;
void f(int& arg)
{ // ERROR - argument 1
        if (arg) ;
}
const int& icr = ic;

int main(void)
{
  f(icr);   // g++ does not give error here// ERROR - .*

  return 0;
}