OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
static3.C
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-error "" } .*
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