inline.c revision eca3ed7490300ae31dab178d11d70953e96a9e4e
1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3// Check that we don't allow illegal uses of inline 4inline int a; // expected-error{{'inline' can only appear on functions}} 5typedef inline int b; // expected-error{{'inline' can only appear on functions}} 6int d(inline int a); // expected-error{{'inline' can only appear on functions}} 7