aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/ctor1.C
blob: 123295dc409be8bdb3b10eb454ac990130ccdfb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// PRMS Id: 5584

extern "C"
{
  struct xx {
    void (*xx)(void);		// ERROR - field with name of class
    int x,y;
  };
}

int r = 1;

void f(void)
{
  r = 0;
}

int main()
{
  struct xx p;

  p.xx = f;
  p.xx();

  return r;
}