llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.fct.spec/p3.cpp

12 lines
351 B
C++
Raw Normal View History

// RUN: %clang_cc1 -verify %s
// XFAIL: *
void f0(void) {
inline void f1(); // expected-error {{'inline' is not allowed on block scope function declaration}}
}
// 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.