diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.ext/attrib4.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.ext/attrib4.C | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib4.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib4.C deleted file mode 100644 index 5200eac9d92..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.ext/attrib4.C +++ /dev/null @@ -1,24 +0,0 @@ -// Test that attributes are really applied to function declarations under -// various conditions. -// Contributed by Jason Merrill (jason@cygnus.com) -// Special g++ Options: -Wformat -// Build don't link: - -#define PF __attribute__ ((format (printf, 1, 2))) - -struct A { - static PF void f (char *, ...); - friend PF void g (char *, ...); - static void test (); -}; - -void PF h (char *, ...); -void PF k (char *, ...) { } - -void A::test () -{ - f ("%f", 42); // WARNING - - g ("%f", 42); // WARNING - - h ("%f", 42); // WARNING - - k ("%f", 42); // WARNING - -} |