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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ext/] [attrib3.C] - Blame information for rev 699

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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