blob: 43a4bae48e95c5180682b576e9a9bb460ee1c89e [file] [log] [blame]
Martin Storsjo71decf82019-09-27 12:25:19 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3extern inline
4__attribute__((__gnu_inline__))
5void gnu_inline1() {}
6
7inline
8__attribute__((__gnu_inline__)) // expected-warning {{'gnu_inline' attribute without 'extern' in C++ treated as externally available, this changed in Clang 10}}
9void gnu_inline2() {}