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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [overload2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// Bug: foo and bar are considered to be overloaded (i.e. their
3
//   IDENTIFIER_GLOBAL_VALUES are TREE_LISTs) even though they aren't,
4
//   so ?: thinks it can't resolve the names.
5
 
6
void foo ();
7
void bar ();
8
 
9
void baz ()
10
{
11
  void (*p)() = 1 ? foo : bar;  // { dg-bogus "" } wrongful overloading
12
}

powered by: WebSVN 2.1.0

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