================
@@ -0,0 +1,33 @@
+// Test that MS ABI copy-constructor closures (built when throwing a class by
+// value whose copy constructor has default arguments) survive a PCH
+// round-trip. BuildCtorClosureDefaultArgs deliberately leaves the first
+// default-arg slot null for a copy ctor closure (the closure itself supplies
+// that argument).
+//
+// Test this without pch.
+// RUN: %clang_cc1 -fcxx-exceptions -fms-extensions -triple i386-pc-win32 
-std=c++20 -include %s -emit-llvm -o - %s | FileCheck 
--check-prefixes=CHECK,CHECK-NOPCH %s
+//
+// Test with pch.
+// #207949: this cannot check for ??_ODefault copy-ctor closure:
+// ASTContext::CopyConstructorForExceptionObject is serialized into the PCH.
----------------
wenju-he wrote:

done

https://github.com/llvm/llvm-project/pull/207917
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to