// { dg-do run }
// prms-id: 3579
extern "C" int printf(const char *, ...);
int num_x;
class Y {
public:
Y () { printf("Y() this: %x\n", this); }
~Y () { printf("~Y() this
// { dg-do run }
namespace {
int i = 10;
enum fish { one = 1, two = 2, red = 3, blue = 4 };
}
extern "C" int printf (const char *, ...);
int main(void)
{
if (i != 10) {
return 1;
}
if (
// { dg-do run }
// This is a test case to make sure the explicit cast on a pointer to
// a member function works ok.
// prms-id: 3060
extern "C" int printf(const char *, ...);
class Object;
typed
// { dg-do run }
// prms-id: 3139
extern "C" int printf(const char *, ...);
class A {
public:
A() { }
virtual int a() = 0;
};
class B : virtual public A {
public:
virtual int a() = 0;
};
// { dg-do run }
// GROUPS vtable
extern "C" int printf (const char *, ...);
class A
{
public:
virtual ~A(){};
virtual int type(void)
{
return -1;
}
};
class B
{
public:
virtual ~B(){
// { dg-do run }
// prms-id: 3570
extern "C" int printf(const char *, ...);
struct A {
void print() {printf("A");};
};
struct B : A {
typedef A superB;
void print() {superB::print(); pri
// { dg-do run }
// prms-id: 2960
extern "C" int printf(const char *, ...);
class Test0 {
public:
virtual void f0() { } // works fine if this virtual removed
};
class Test1 : public Test0 {