1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c89 %s
3 // Tests for a few cases involving C functions without prototypes.
5 void noproto() __attribute__((nonblocking
)) // expected-error {{'nonblocking' function must have a prototype}}
10 void noproto(void) __attribute__((blocking
));
12 // A redeclaration isn't any different - a prototype is required.
14 void f1() __attribute__((nonblocking
)); // expected-error {{'nonblocking' function must have a prototype}}