2010-01-01 05:34:51 -05:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-06-02 13:58:47 -04:00
|
|
|
|
|
|
|
|
// 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}}
|