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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
inline23.C
blob
dcb443be1cc27ea82d0c8c4dd588081a56b484f7
1
// { dg-do link }
2
3
struct B
4
{
5
virtual ~B() {}
6
};
7
8
struct A : public B
9
{
10
~A();
11
void foo(void);
12
void bar(void);
13
};
14
15
inline void A::foo(void)
16
{
17
static int i;
18
i++;
19
}
20
21
void A::bar()
22
{
23
foo();
24
}
25
26
int main()
27
{
28
}