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

Eugene Epshteyn via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 08:41:45 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) {
----------------
eugeneepshteyn wrote:

This is a good test, but shouldn't we also test something that calls `Component::GetElementByteSize()`, which was actually modified? :)

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


More information about the llvm-commits mailing list