summaryrefslogtreecommitdiff
path: root/clang/test/Sema/inline.c
blob: 3c99f24337830a66828a6a4da6deadc8d256fa9c (about) (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 -fsyntax-only -verify %s

// Check that we don't allow illegal uses of inline
inline int a; // expected-error{{'inline' can only appear on functions}}
typedef inline int b; // expected-error{{'inline' can only appear on functions}}
int d(inline int a); // expected-error{{'inline' can only appear on functions}}