11556Srgrimes// Test for interpretation of attribute immediately before function name.
21556Srgrimes// Origin: Joseph Myers <jsm28@cam.ac.uk>
31556Srgrimes// { dg-do compile }
41556Srgrimes
51556Srgrimes// An attribute immediately before the function name should in this
61556Srgrimes// case properly apply to the return type, but compatibility with
71556Srgrimes// existing code using this form requires it to apply to the function
81556Srgrimes// type instead in the case of attributes applying to function types,
91556Srgrimes// and to the declaration in the case of attributes applying to declarations.
101556Srgrimesint ****__attribute__((format(printf, 1, 2))) foo(const char *, ...);
111556Srgrimes