Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / ext / attrib1.C
blob2bd69e82a541af3217a6f49f5038354c22669294
1 // Test for interpretation of attribute immediately before function name.
2 // Origin: Joseph Myers <jsm28@cam.ac.uk>
3 // { dg-do compile }
5 // An attribute immediately before the function name should in this
6 // case properly apply to the return type, but compatibility with
7 // existing code using this form requires it to apply to the function
8 // type instead in the case of attributes applying to function types,
9 // and to the declaration in the case of attributes applying to declarations.
10 int ****__attribute__((format(printf, 1, 2))) foo(const char *, ...);