]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CXX/dcl.dcl/dcl.spec/dcl.fct.spec/p3.cpp
Vendor import of clang r114020 (from the release_28 branch):
[FreeBSD/FreeBSD.git] / test / CXX / dcl.dcl / dcl.spec / dcl.fct.spec / p3.cpp
1 // RUN: %clang_cc1 -verify %s
2
3 void f0a(void) {
4    inline void f1(); // expected-error {{inline declaration of 'f1' not allowed in block scope}}
5 }
6
7 void f0b(void) {
8    void f1();
9 }
10
11 // FIXME: Add test for "If the inline specifier is used in a friend declaration,
12 // that declaration shall be a definition or the function shall have previously
13 // been declared inline.