Author: Maryam Moghadas
Date: 2026-06-12T15:56:24-04:00
New Revision: 0526807f89803b394fcebc87dfc234e57513986e

URL: 
https://github.com/llvm/llvm-project/commit/0526807f89803b394fcebc87dfc234e57513986e
DIFF: 
https://github.com/llvm/llvm-project/commit/0526807f89803b394fcebc87dfc234e57513986e.diff

LOG: [clang][z/OS] Add test for TypeLoc tail padding alignment (#202710)

This adds a test for the TypeLoc tail padding fix that was merged in
commit 89305c3.

Added: 
    clang/test/AST/tyloctype_alignment.cpp

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/tyloctype_alignment.cpp 
b/clang/test/AST/tyloctype_alignment.cpp
new file mode 100644
index 0000000000000..b38be9e7060b9
--- /dev/null
+++ b/clang/test/AST/tyloctype_alignment.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -ast-dump  %s | FileCheck %s
+
+// Regression test for assertion failure in CreateTypeSourceInfo
+// due to incorrect TypeLoc data size alignment.
+
+// CHECK: FunctionTemplateDecl {{.*}} fpclassify
+template<class T>
+int fpclassify(T v);
+template<>
+int fpclassify<float> (float v);


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

Reply via email to