1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // Check that we don't allow illegal uses of inline 4*f4a2713aSLionel Sambuc // (checking C++-only constructs here) 5*f4a2713aSLionel Sambuc struct c {inline int a;}; // expected-error{{'inline' can only appear on functions}} 6