| 1 |
// { dg-do assemble } |
| 2 |
// GROUPS passed static |
| 3 |
class foo{ |
| 4 |
public: |
| 5 |
static void bar( int i ){ value = i; } |
| 6 |
static int value;// { dg-message "" } .* |
| 7 |
}; |
| 8 |
|
| 9 |
const int foo::value = 0; // should be an error.// { dg-error "" } .* |
| 10 |
|
| 11 |
int main(){ |
| 12 |
foo::bar( 1 ); |
| 13 |
return 0; |
| 14 |
} |
| 15 |
|