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] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run  }
2
// g++ 1.36.1 bug 900208_02
3
 
4
// g++ does not allow a static member of a class/struct/union to be
5
// declared as an array without an explicit upper bound.
6
 
7
// Cfront 2.0 passes this test.
8
 
9
// keywords: static data members, arrays, dimension, array bound
10
 
11
class class0 {
12
public:
13
  static int class0_data_member_0[];    // { dg-bogus "" }
14
};
15
 
16
int class0::class0_data_member_0[3] = { 1, 2, 3 };  // { dg-bogus "" }
17
 
18
int main () { return 0; }

powered by: WebSVN 2.1.0

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