================
@@ -122,3 +122,25 @@ namespace PR10801 {
     thingy(b);
   }
 }
+
+namespace GH63009 {
+struct S1 {
+  [[noreturn]] S1();
+};
+
+struct S2 {
+  [[noreturn]] ~S2();
+};
+
+int foo();
+
+int test_1() {
+  S1 s1;
+  foo();
+}
+
+int test_2() {
+  S2 s2;
+  foo();
----------------
Sirraide wrote:

Hmm, I’d expect these two functions to raise a `-Wmissing-noreturn` warning. 
That’s probably something we should investigate, but that doesn’t have to be in 
this pr imo since I’d say it’s more important that we *don’t* issue a 
`-Wreturn-type` warning here.

https://github.com/llvm/llvm-project/pull/115558
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to