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++.bugs/] [900208_02.C] - Rev 154

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

// { dg-do run  }
// g++ 1.36.1 bug 900208_02

// g++ does not allow a static member of a class/struct/union to be
// declared as an array without an explicit upper bound.

// Cfront 2.0 passes this test.

// keywords: static data members, arrays, dimension, array bound

class class0 {
public:
  static int class0_data_member_0[];    // { dg-bogus "" } 
};

int class0::class0_data_member_0[3] = { 1, 2, 3 };  // { dg-bogus "" } 

int main () { return 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.