[clang-tidy] Fix crash in readability-function-cognitive-complexity on weak refs
[lldb.git] / clang-tools-extra / test / clang-tidy / checkers / readability-function-cognitive-complexity.cpp
index 431540c..0916acd 100644 (file)
@@ -1013,3 +1013,5 @@ void functionThatCallsTemplatedFunctions() {
 
   templatedFunction<void*>();
 }
+
+static void pr47779_dont_crash_on_weak() __attribute__((__weakref__("__pr47779_dont_crash_on_weak")));