compilers: Update gnu_inline test to work correctly with Clang >= 10

Which has changed the way it handles gnu_inline in C++.
pull/6993/head
Dylan Baker 5 years ago committed by Jussi Pakkanen
parent d4b537c895
commit 66bc485646
  1. 3
      mesonbuild/compilers/c_function_attributes.py

@ -127,4 +127,7 @@ CXX_FUNC_ATTRIBUTES = {
'static int (*resolve_foo(void))(void) { return my_foo; }'
'}'
'int foo(void) __attribute__((ifunc("resolve_foo")));'),
# Clang >= 10 requires the 'extern' keyword
'gnu_inline':
'extern inline __attribute__((gnu_inline)) int foo(void) { return 0; }',
}

Loading…
Cancel
Save