[llvm] [flang-rt] Fix REAL(10)/COMPLEX(10) component sizes in runtime type info (PR #192049)

Sairudra More via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 10:25:44 PDT 2026


================
@@ -280,3 +280,31 @@ TEST(Descriptor, Dump) {
   fclose(tmpf);
 }
 #endif // defined(__linux__) && !defined(__ANDROID__)
+
+// Verify that Descriptor::BytesFor returns the correct storage size
+// for Real and Complex types, especially for kind=10 where the x87
+// 80-bit extended precision value is stored in a 16-byte container.
+TEST(Descriptor, BytesForRealAndComplex) {
----------------
Saieiei wrote:

Done, I added a direct `Component::GetElementByteSize()` test as well, in addition to the `Descriptor::BytesFor()` coverage.

https://github.com/llvm/llvm-project/pull/192049


More information about the llvm-commits mailing list