summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/using19.C
blob: 973998bc02195d40b8a2adc0caa28a1fe35a85f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2007 Free Software Foundation
// Contributed by Ollie Wild <aaw@google.com>
// { dg-do compile }


// C++ Standard, 7.3.3, clause 10:
// "Since a using-declaration is a declaration, the restrictions on
// declarations of the same name in the same declarative region (3.3) also
// apply to using-declarations."

namespace M
{
  union A;
  void B();
}

void A();
union B;

using M::A;
using M::B;