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.0rc4/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [t42.C] - Blame information for rev 519

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
extern "C" void abort ();
3
 
4
struct A {
5
  struct stat {
6
    int x;
7
    stat (int j) { abort (); }
8
  };
9
  static int stat (double d) { return 0; }      // { dg-bogus "" } cfront takes it
10
  static int zap () {
11
    stat (0);
12
    return stat (1);    // { dg-bogus "" } this should work
13
  }
14
};
15
 
16
int main () {
17
  return A::zap ();
18
}

powered by: WebSVN 2.1.0

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