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
Initial revision
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p786.C
1
// prms-id: 786
2
3
extern "C" void printf (char *, ...);
4
extern "C" void exit(int);
5
class C
6
{
7
int a;
8
public:
9
C() {a = 1;}
10
};
11
12
void func(const C& a, C& b)
13
{
14
printf ("in const func\n");
15
exit(1);
16
}
17
18
void func(C& a, C& b)
19
{
20
printf ("in non-const func\n");
21
}
22
23
void testit(const C& a, C& b)
24
{
25
func(a,b);
26
}
27
28
main()
29
{
30
C a;
31
C b;
32
33
func(a,b);
34
return 0;
35
}