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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr17697-2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR tree-optimization/17697
2
// { dg-do run }
3
// { dg-options "-O2" }
4
 
5
extern "C"
6
{
7
  extern int strcmp (const char *s, const char *t) throw ()
8
    __attribute__ ((pure));
9
}
10
 
11
namespace A
12
{
13
  extern int strcmp (const char *s, const char *t) throw ();
14
}
15
 
16
inline int
17
A::strcmp (const char *s, const char *t) throw ()
18
{
19
  return ::strcmp (s, t);
20
}
21
 
22
int
23
foo (const char *x) throw ()
24
{
25
  return A::strcmp ("", x);
26
}
27
 
28
int
29
main ()
30
{
31
  return foo ("") != 0 || foo ("a") == 0;
32
}

powered by: WebSVN 2.1.0

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