summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/static3.C
blob: c0ee011787f0cc4ffa7d742a910460daf689e3c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// GROUPS passed static
class foo{
public:
  static void  bar( int i ){ value = i; }
  static int  value;// { dg-error "" } .*
};

const int  foo::value = 0; // should be an error.// { dg-error "" } .*

int main(){
  foo::bar( 1 );
  return 0;
}