OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [instantiate4.C] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do link }
2
// { dg-options "-frepo -Werror" }
3
// Build then link:
4
 
5
 
6
// Submitted by Melissa O'Neill 
7
// the vtable of Foo wouldn't be generated
8
 
9
template 
10
struct Foo {
11
   virtual void foo() {}
12
};
13
 
14
template 
15
struct Bar {
16
   void bar();
17
};
18
 
19
template 
20
void Bar::bar() {
21
   Foo oof;
22
}
23
 
24
int main () {
25
    Bar rab;
26
 
27
    rab.bar();
28
}
29
 
30
// { dg-final { cleanup-repo-files } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.