13573b2c84372d9484296fa658f5276f6c09acb92Daniel Dunbar// RUN: %clang_cc1 -verify %s 2630127a35e0b1c09d376550b7eff8624b5017199Daniel Dunbar 3a58644c271d16285cc9e46593a7a66e2367e9a08Douglas Gregorvoid f0a(void) { 4a58644c271d16285cc9e46593a7a66e2367e9a08Douglas Gregor inline void f1(); // expected-error {{inline declaration of 'f1' not allowed in block scope}} 5a58644c271d16285cc9e46593a7a66e2367e9a08Douglas Gregor} 6a58644c271d16285cc9e46593a7a66e2367e9a08Douglas Gregor 7a58644c271d16285cc9e46593a7a66e2367e9a08Douglas Gregorvoid f0b(void) { 8a58644c271d16285cc9e46593a7a66e2367e9a08Douglas Gregor void f1(); 9630127a35e0b1c09d376550b7eff8624b5017199Daniel Dunbar} 10630127a35e0b1c09d376550b7eff8624b5017199Daniel Dunbar 11630127a35e0b1c09d376550b7eff8624b5017199Daniel Dunbar// FIXME: Add test for "If the inline specifier is used in a friend declaration, 12630127a35e0b1c09d376550b7eff8624b5017199Daniel Dunbar// that declaration shall be a definition or the function shall have previously 13630127a35e0b1c09d376550b7eff8624b5017199Daniel Dunbar// been declared inline. 14