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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [obj-c++.dg/] [template-5.mm] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// 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.