OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [obj-c++.dg/] [template-5.mm] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 308 jeremybenn
// Test that extern template does not get emitted.
2
// Author: Matt Austern 
3
 
4
// { dg-do compile }
5
// { dg-options "" }
6
// { dg-final { scan-assembler-not ".globl __ZN3FooIiE5identEi" } }
7
 
8
template 
9
struct Foo {
10
  X ident(X x) { return x; }
11
};
12
 
13
extern template struct Foo;
14
 
15
int abcde(Foo& foo, int n) {
16
  return foo.ident(n);
17
}

powered by: WebSVN 2.1.0

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