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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [array3.C] - Diff between revs 154 and 816

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

Rev 154 Rev 816
// { dg-do assemble  }
// { dg-do assemble  }
//
//
// Copyright (C) 2000 Free Software Foundation, Inc.
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 10 Aug 2000 
// Contributed by Nathan Sidwell 10 Aug 2000 
// bug 386.C We ICE'd before emitting a diagnostic when trying to
// bug 386.C We ICE'd before emitting a diagnostic when trying to
// initialize a constant non-pod array from something bogus.
// initialize a constant non-pod array from something bogus.
struct A
struct A
{
{
  A(char);
  A(char);
};
};
class B
class B
{
{
  const A ary[16];
  const A ary[16];
  B (const A ary[]);
  B (const A ary[]);
};
};
B::B (const A a[])
B::B (const A a[])
  : ary(a)        // { dg-error "bad array initializer" }
  : ary(a)        // { dg-error "bad array initializer" }
{
{
}
}
 
 

powered by: WebSVN 2.1.0

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