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.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [init6.C] - Diff between revs 305 and 338

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

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// GROUPS passed initialization
// GROUPS passed initialization
class Tag {
class Tag {
public:
public:
        Tag(int i):value(i){}
        Tag(int i):value(i){}
        int value;
        int value;
};
};
extern const Tag myTag;
extern const Tag myTag;
extern const Tag myTag=9;
extern const Tag myTag=9;
// The compiler should not issue an error on this line; expand_static_init
// The compiler should not issue an error on this line; expand_static_init
// should be checking that there's no initializer for this line, and thus
// should be checking that there's no initializer for this line, and thus
// doesn't need to produce an error.
// doesn't need to produce an error.
extern const Tag myTag;
extern const Tag myTag;
 
 

powered by: WebSVN 2.1.0

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