Martin Storsjo | 71decf8 | 2019-09-27 12:25:19 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | extern inline | ||||
4 | __attribute__((__gnu_inline__)) | ||||
5 | void gnu_inline1() {} | ||||
6 | |||||
7 | inline | ||||
8 | __attribute__((__gnu_inline__)) // expected-warning {{'gnu_inline' attribute without 'extern' in C++ treated as externally available, this changed in Clang 10}} | ||||
9 | void gnu_inline2() {} |