OSDN Git Service

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