Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.other/using9.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
// { dg-do assemble } // // Copyright (C) 2000 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 26 Feb 2001 <nathan@codesourcery.com> // Bug 75. using declarations cannot introduce functions which ambiguate // those in the current namespace, BUT here we're reaccessing the current // namespace -- the function is not being 'introduced'. extern int a(); struct x {}; using ::x; using ::a; extern "C" void foo (); // { dg-message "previous declaration" } namespace { extern "C" int foo (); // { dg-error "C.*linkage" } using ::foo; // { dg-error "" } already in use }