================ @@ -156,6 +156,16 @@ void nb10( static_cast<void (*)()>(fp1)(); // expected-warning {{function with 'nonblocking' attribute must not call non-'nonblocking' expression}} } +// Expression involving indirection +int nb10a() [[clang::nonblocking]]; +int nb10b() [[clang::nonblocking]]; + +int nb10c(bool x) [[clang::nonblocking]] +{ + // Warns that the expression is not nonblocking. ---------------- dougsonos wrote:
Oops that comment is left over from when the test was failing on main :) https://github.com/llvm/llvm-project/pull/111224 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits