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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tc1/] [dr1.C] - Blame information for rev 821

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// Origin: Giovanni Bajo 
3
// DR1: What if two using-declarations refer to the same function but the
4
//  declarations introduce different default-arguments?
5
 
6
namespace A {
7
  extern "C" void f(int = 5);
8
}
9
namespace B {
10
  extern "C" void f(int = 5);
11
}
12
using A::f;
13
using B::f;
14
 
15
void use() {
16
  f(3);
17
  f();        // { dg-error "" "" { xfail *-*-* } }
18
}

powered by: WebSVN 2.1.0

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