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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [bitfield3.C] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

// PR c++/33841
// { dg-do compile }

template<int> struct A
{
  // multiple errors below: missing semicolon, no anonymous structs, etc.
  struct {} : 2;        // { dg-error "" }
};

template<int> struct B
{
  int a;
  // multiple errors below: missing semicolon, no anonymous structs, etc.
  struct {} : 2;        // { dg-error "" }
  int b;
};

struct C : A<0> {};
struct D : B<0> {};

Go to most recent revision | 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.