From a88bb763b987b37e77064dd43766af11c79afeed Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 13 Apr 1999 18:41:24 -0400 Subject: [PATCH] new From-SVN: r26427 --- gcc/testsuite/g++.old-deja/g++.ext/attrib3.C | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.ext/attrib3.C 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); +} -- 2.30.2