OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [using9.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
//
3
// Copyright (C) 2000 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 26 Feb 2001 
5
 
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'.
9
 
10
extern int a();
11
struct x {};
12
 
13
using ::x;
14
using ::a;
15
 
16
extern "C" void foo ();         // { dg-error "previous declaration" }
17
 
18
namespace {
19
  extern "C" int foo ();        // { dg-error "C.*linkage" }
20
  using ::foo; // { dg-error "" } already in use
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.