From: Jason Merrill Date: Tue, 13 Apr 1999 22:41:24 +0000 (-0400) Subject: new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a88bb763b987b37e77064dd43766af11c79afeed;p=gcc.git new From-SVN: r26427 --- diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C new file mode 100644 index 00000000000..18b16530bc3 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib3.C @@ -0,0 +1,20 @@ +// Test for proper handling of attributes in template instantiation. +// Contributed by Jason Merrill +// Skip if not target: i?86-*-* + +template +struct A { + static void f () __attribute__ ((stdcall)); +}; + +template void +A::f () { } + +void g (void (__attribute__ ((stdcall)) *p)()) { } +void g (int); + +int +main () +{ + g (&A::f); +}