summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/inline.cpp
blob: 7d0505a435eeff0cc0a225c49909f06d91ed1e32 (plain)
1
2
3
4
5
// RUN: clang-cc -fsyntax-only -verify %s

// Check that we don't allow illegal uses of inline
// (checking C++-only constructs here)
struct c {inline int a;}; // expected-error{{'inline' can only appear on functions}}