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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [attr-used-1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Attribute used on a member function or static data member
2
// of a template should cause them to be instantiated along
3
// with the class itself.
4
 
5
// { dg-final { scan-assembler "_ZN1AIiE1fEv" } }
6
// { dg-final { scan-assembler "_ZN1AIiE1tE" } }
7
 
8
template  struct A
9
{
10
  void f() __attribute ((used));
11
  static T t __attribute ((used));
12
};
13
 
14
template  void A::f() { }
15
template  T A::t;
16
 
17
A a;

powered by: WebSVN 2.1.0

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