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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [ctors20.C] - Rev 305

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// GROUPS passed constructors
// ctor file
// Message-Id: <9311011758.AA25157@thneed.cs.duke.edu>
// From: Vivek Khera <khera@cs.duke.edu>
// Subject: g++ 2.5.0 fails to automatically generate default initializer
// Date: Mon, 01 Nov 1993 12:58:34 -0500

class String
{
  private:
    char a[100];
    int len;
  public:
    String();
};

String::String()
{
    len = 0;
}


struct List
{
    String item[100];
    int num_items;
//    List();                   // uncomment this line to let compile work
};

int
main(int argc, char **argv)
{
    List a;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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