brintos

brintos / llvm-project-archived public Read only

0
0
Text · 494 B · 0647e47 Raw
15 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c89 %s2 3// Tests for a few cases involving C functions without prototypes.4 5void noproto() __attribute__((nonblocking)) // expected-error {{'nonblocking' function must have a prototype}}6{7}8 9// This will succeed10void noproto(void) __attribute__((blocking));11 12// A redeclaration isn't any different - a prototype is required.13void f1(void);14void f1() __attribute__((nonblocking)); // expected-error {{'nonblocking' function must have a prototype}}15