Author: Aaron Ballman Date: 2024-07-15T09:03:30-04:00 New Revision: 1af3a89a4b384cbc5a6b111a0f7756085de818cd
URL: https://github.com/llvm/llvm-project/commit/1af3a89a4b384cbc5a6b111a0f7756085de818cd DIFF: https://github.com/llvm/llvm-project/commit/1af3a89a4b384cbc5a6b111a0f7756085de818cd.diff LOG: Correct test for 32-bit systems Addresses an issue found in post-commit. Added: Modified: clang/test/C/C2y/n3244.c Removed: ################################################################################ diff --git a/clang/test/C/C2y/n3244.c b/clang/test/C/C2y/n3244.c index c1f62d59d2690..158d7e3921ceb 100644 --- a/clang/test/C/C2y/n3244.c +++ b/clang/test/C/C2y/n3244.c @@ -56,7 +56,7 @@ int AlignmentOnOriginalDecl; // expected-error {{'_Alignas' must be specified on _Static_assert(_Alignof(AlignmentOnOriginalDecl) == 8, ""); long long CompatibleAlignment; -_Static_assert(_Alignof(CompatibleAlignment) == _Alignof(long long), ""); +_Static_assert(_Alignof(__typeof__(CompatibleAlignment)) == _Alignof(long long), ""); _Alignas(_Alignof(long long)) long long CompatibleAlignment; // Okay, alignment is the same as the implied alignment _Alignas(_Alignof(long long)) long long CompatibleAlignment2; // expected-note {{declared with '_Alignas' attribute here}} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits