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
/
redecl3.C
blob
1bfd8897487e41106d8a751e86a2a6772503dc4e
1
// { dg-do assemble }
2
// GROUPS passed redeclaration
3
class foo
4
{
5
public:
6
int bar(int a);
7
};
8
9
10
void bar(int &a);
11
12
int foo::bar(int a) {
13
int a = 0; // Should this be an error ?// { dg-error "" } declaration.*
14
15
bar(a);
16
return 0;
17
}