llvm-for-llvmta/tools/clang/test/SemaCXX/gnu_inline.cpp

10 lines
304 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
extern inline
__attribute__((__gnu_inline__))
void gnu_inline1() {}
inline
__attribute__((__gnu_inline__)) // expected-warning {{'gnu_inline' attribute without 'extern' in C++ treated as externally available, this changed in Clang 10}}
void gnu_inline2() {}