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
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr44535.C
blob
9126f3997fb109ada1015a3f0151f339ebfb6c56
1
/* { dg-do run } */
2
3
namespace FOO {
4
5
template <typename T>
6
class A
7
{
8
public:
9
void Enum();
10
virtual void OnProv() = 0;
11
virtual ~A() { }
12
};
13
typedef A<char> B;
14
15
template<typename T>
16
void A<T>::Enum ()
17
{
18
OnProv ();
19
}
20
} // namespace FOO
21
22
class C {};
23
24
class D: public C, public FOO::B {
25
public:
26
void OnProv() {}
27
};
28
29
int main(int argc, char *argv[])
30
{
31
D x;
32
x.Enum();
33
return 0;
34
}