Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / attrib3.C
blob492cd9d7c491015fe51ad8d95d48157343009928
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>
6 template <class T>
7 struct A {
8   static void f () __attribute__ ((stdcall));
9 };
11 template <class T> void
12 A<T>::f () { }
14 void g (void (__attribute__ ((stdcall)) *p)()) { }
15 void g (int);
17 int
18 main ()
20   g (&A<int>::f);