Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / using9.C
blob9779f72d8611a1cd5f7a53dd1fed0946b498d619
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 26 Feb 2001 <nathan@codesourcery.com>
6 // Bug 75. using declarations cannot introduce functions which ambiguate
7 // those in the current namespace, BUT here we're reaccessing the current
8 // namespace -- the function is not being 'introduced'.
10 extern int a();
11 struct x {};
13 using ::x;
14 using ::a;
16 extern "C" void foo ();
18 namespace {
19   extern "C" int foo ();
20   using ::foo; // { dg-error "" } already in use