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-6.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 { X ident(X x); };
10
 
11
template 
12
  X Foo::ident(X x) { return x; }
13
 
14
extern template struct Foo;
15
 
16
int abcde(Foo& foo, int n) { return foo.ident(n); }

powered by: WebSVN 2.1.0

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