summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/declspec.c
blob: 05f492d67ac032f824b239bcd7eb23cc6a5916e5 (plain)
1
2
3
4
5
6
7
8
// RUN: clang %s -verify -fsyntax-only
typedef char T[4];

T foo(int n, int m) {  }  // expected-error {{cannot return array or function}}

void foof(const char *, ...) __attribute__((__format__(__printf__, 1, 2))), barf (void);


OpenPOWER on IntegriCloud