Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.ext / attrib3.C
blob7d9c70e3b75d0148e47f9afb303b9bc6d92c55b7
1 // { 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 <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);