summaryrefslogtreecommitdiff
path: root/clang/test/CXX/dcl.dcl/dcl.spec/dcl.fct.spec/p3.cpp
blob: d7b9eff10a8086256be3f6e9193d493eb7509273 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -verify %s

void f0a(void) {
   inline void f1(); // expected-error {{inline declaration of 'f1' not allowed in block scope}}
}

void f0b(void) {
   void f1();
}

// 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.