summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/complete1.C
blob: d854ffdec07bc04d90693f7b4b14ee3f01813ea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// PRMS Id: 4695
// Bug: g++ wrongly requires A to be complete here.

struct A;

void foo(const A &);

void bar(A *p)
{
  foo(*p);
}