OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [bool2.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do run  }
// { dg-do run  }
// { dg-options "" }
// { dg-options "" }
class A {
class A {
public:
public:
  operator bool () {
  operator bool () {
    return true;
    return true;
  }
  }
} a;
} a;
class A1 {
class A1 {
public:
public:
  operator int () {
  operator int () {
    return true;
    return true;
  }
  }
} a1;
} a1;
class A2 {
class A2 {
public:
public:
  operator const char * () {
  operator const char * () {
    return "";
    return "";
  }
  }
} a2;
} a2;
class A3 {
class A3 {
public:
public:
  operator unsigned long long int () {
  operator unsigned long long int () {
    return true;
    return true;
  }
  }
} a3;
} a3;
class A4 {
class A4 {
public:
public:
  operator const char * () {
  operator const char * () {
    return "";
    return "";
  }
  }
  operator unsigned long long int () {
  operator unsigned long long int () {
    return true;
    return true;
  }
  }
} a4;
} a4;
class A5 {
class A5 {
public:
public:
  operator double () {
  operator double () {
    return 256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0
    return 256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0
      *256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0
      *256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0
        *256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0
        *256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0
          *256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0;
          *256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0*256.0e0;
  }
  }
} a5;
} a5;
int i = true;
int i = true;
bool b = true;
bool b = true;
bool c = (bool)(void (A::*)())0;
bool c = (bool)(void (A::*)())0;
bool d = 256;
bool d = 256;
main() {
main() {
  if (!d) return 1;
  if (!d) return 1;
  if (!a) return 1;
  if (!a) return 1;
  if (!(bool)a) return 1;
  if (!(bool)a) return 1;
  //  if (!(long long)a) return 1;
  //  if (!(long long)a) return 1;
  if (!a1) return 1;
  if (!a1) return 1;
  if (!a2) return 1;
  if (!a2) return 1;
  if (!a3) return 1;
  if (!a3) return 1;
  if (!a5) return 1;
  if (!a5) return 1;
}
}
 
 

powered by: WebSVN 2.1.0

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