summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net13.C
blob: acf1f65ba7a6c0dba531ff39c227f7a572862d59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }

// make sure extern "C" friends work.

extern "C" { void func(); }

struct crash {
  int i;
  friend void func();
} a;

void func() {
  a.i = 1;
}