Skip to content

Commit 1af3a89

Browse files
committed
Correct test for 32-bit systems
Addresses an issue found in post-commit.
1 parent 93d7d9b commit 1af3a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/C/C2y/n3244.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ int AlignmentOnOriginalDecl; // expected-error {{'_Alignas' must be specified on
5656
_Static_assert(_Alignof(AlignmentOnOriginalDecl) == 8, "");
5757

5858
long long CompatibleAlignment;
59-
_Static_assert(_Alignof(CompatibleAlignment) == _Alignof(long long), "");
59+
_Static_assert(_Alignof(__typeof__(CompatibleAlignment)) == _Alignof(long long), "");
6060
_Alignas(_Alignof(long long)) long long CompatibleAlignment; // Okay, alignment is the same as the implied alignment
6161

6262
_Alignas(_Alignof(long long)) long long CompatibleAlignment2; // expected-note {{declared with '_Alignas' attribute here}}

0 commit comments

Comments
 (0)