================
@@ -8370,4 +8370,32 @@ void testDependent(int n) {
callDependent<void (&)(int)>(callback, n); // expected-note {{in
instantiation of function template specialization
'FunctionPointers::callDependent<void (&)(int)>' requested here}}
}
+// lock_returned on a function pointer or reference.
+struct Guarded {
+ Mutex mu;
+ int data GUARDED_BY(mu);
----------------
aaronpuchert wrote:
I wonder if it makes sense to test a member function pointer that refers to the
mutex member.
https://github.com/llvm/llvm-project/pull/226561
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits