summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/koenig11.C
blob: dab853bf0f73d8bbefd1d33018acc01aa5309ba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that we treat unions like other classes in arg-dep lookup.

union U
{
  friend void f (U);
};

int main()
{
  U u;
  f(u);
}