OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [inline-ns2.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options -std=c++0x }
2
 
3
namespace Q {
4
  inline namespace V1 {
5
    extern int i;               // { dg-error "" }
6
    extern int j;               // { dg-error "" }
7
    void f();                   // { dg-error "" }
8
    void g();                   // { dg-error "" }
9
  }
10
  inline namespace V2 {
11
    extern int j;               // { dg-error "" }
12
    void g();                   // { dg-error "" }
13
  }
14
  extern int i;                 // { dg-error "" }
15
  void f();                     // { dg-error "" }
16
  void h();
17
}
18
namespace R {
19
  using namespace Q;
20
}
21
int Q::i = 1;                   // { dg-error "ambiguous" }
22
int Q::j = 1;                   // { dg-error "ambiguous" }
23
void Q::f() { }                 // { dg-error "ambiguous" }
24
void Q::g() { }                 // { dg-error "ambiguous" }
25
void R::h() { }                 // { dg-error "" }

powered by: WebSVN 2.1.0

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