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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ext/] [attrib3.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run { target i?86-*-* x86_64-*-* } }
2
// { dg-require-effective-target ilp32 }
3
// Test for proper handling of attributes in template instantiation.
4
// Contributed by Jason Merrill 
5
 
6
template 
7
struct A {
8
  static void f () __attribute__ ((stdcall));
9
};
10
 
11
template  void
12
A::f () { }
13
 
14
void g (void (__attribute__ ((stdcall)) *p)()) { }
15
void g (int);
16
 
17
int
18
main ()
19
{
20
  g (&A::f);
21
}

powered by: WebSVN 2.1.0

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