================
@@ -47,6 +47,17 @@ void calls_unknown_caught() noexcept {
}
}
+struct Error {};
+
+void calls_unknown_typed_catch() noexcept {
+ // CHECK-MESSAGES-ALL: :[[@LINE-1]]:6: warning: an exception may be thrown
in function 'calls_unknown_typed_catch' which should not throw exceptions
+ // CHECK-MESSAGES-UNDEFINED: :[[@LINE-2]]:6: warning: an exception may be
thrown in function 'calls_unknown_typed_catch' which should not throw exceptions
----------------
vbvictor wrote:
Can we add notes here as well
https://github.com/llvm/llvm-project/pull/218067
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits