// { dg-do run }
// GROUPS passed code-generation
// Check that declarations with initializations are executed
// correctly.
extern "C" int printf (const char *, ...);
int main ()
{
char buff[40]
// { dg-do run }
// GROUPS passed virtual-tables
// Check that virtual function tables are generated and used
// even for struct's/classes which have no explicit constructors.
extern "C" int printf
// { dg-do run }
// GROUPS passed copy-ctors
extern "C" int printf (const char *, ...);
int count = 0;
class C {
public:
C (int) { count++; }
operator int () { return 0; }
};
int
main ()
{
C
// { dg-do run }
// GROUPS passed code-generation
// Check that passing things which are not a multiple of
// 4 bytes in size doesn't mess up other subsequent parameters.
extern "C" int printf (cons
// { dg-do run }
// GROUPS passed constructors
// Check that global level object constructors get called.
extern "C" int printf (const char *, ...);
struct base {
int f1;
int f2;
base (int arg1
// { dg-do run }
// GROUPS passed overloading
extern "C" int printf (const char *, ...);
struct NoName {
int first;
int second;
};
class Casted {
public:
NoName
// { dg-do run }
// GROUPS passed code-generation
// Check that type float parameters can be correctly passed to
// methods.
extern "C" int printf (const char *, ...);
class tres_floats {
float f