OSDN Git Service

* lib/gcc-dg.exp (dg-skip-if): New function.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ext / attrib3.C
1 // { dg-do run { target i?86-*-* } }
2 // { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } }
3 // Test for proper handling of attributes in template instantiation.
4 // Contributed by Jason Merrill <jason@cygnus.com>
5
6 template <class T>
7 struct A {
8   static void f () __attribute__ ((stdcall));
9 };
10
11 template <class T> void
12 A<T>::f () { }
13
14 void g (void (__attribute__ ((stdcall)) *p)()) { }
15 void g (int);
16
17 int
18 main ()
19 {
20   g (&A<int>::f);
21 }