diff options
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/test/unreffun.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/compilerplugins/clang/test/unreffun.cxx b/compilerplugins/clang/test/unreffun.cxx index fc202b80f378..315c699b7748 100644 --- a/compilerplugins/clang/test/unreffun.cxx +++ b/compilerplugins/clang/test/unreffun.cxx @@ -7,6 +7,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include "config_clang.h" + #include "unreffun.hxx" template <typename> struct S @@ -38,10 +40,10 @@ void l() // expected-error {{Unreferenced externally visible function definition void m() { -//TODO: The below would produce a false "Unreferenced externally invisible function definition" for -// Local::f due to the Clang bug addressed at <https://reviews.llvm.org/D145123> "Call -// MarkVirtualMembersReferenced on an actual class definition": -#if 0 +// The below produced a false "Unreferenced externally invisible function definition" for Local::f +// prior to <https://github.com/llvm/llvm-project/commit/d812488d3c54c07f24d4bef79e329f17e7f19c3b> +// "Call MarkVirtualMembersReferenced on an actual class definition" in Clang 17: +#if CLANG_VERSION >= 170000 struct Local; #endif struct Local |