2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -verify %s
|
2009-06-13 14:16:36 +08:00
|
|
|
|
2010-08-06 19:44:10 +08:00
|
|
|
void f0a(void) {
|
|
|
|
inline void f1(); // expected-error {{inline declaration of 'f1' not allowed in block scope}}
|
|
|
|
}
|
|
|
|
|
|
|
|
void f0b(void) {
|
|
|
|
void f1();
|
2009-06-13 14:16:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// FIXME: Add test for "If the inline specifier is used in a friend declaration,
|
|
|
|
// that declaration shall be a definition or the function shall have previously
|
|
|
|
// been declared inline.
|