repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
static3.C
blob
7c43231027969cddfdcaba84cbf62a105db55ddb
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