We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93d7d9b commit 1af3a89Copy full SHA for 1af3a89
clang/test/C/C2y/n3244.c
@@ -56,7 +56,7 @@ int AlignmentOnOriginalDecl; // expected-error {{'_Alignas' must be specified on
56
_Static_assert(_Alignof(AlignmentOnOriginalDecl) == 8, "");
57
58
long long CompatibleAlignment;
59
-_Static_assert(_Alignof(CompatibleAlignment) == _Alignof(long long), "");
+_Static_assert(_Alignof(__typeof__(CompatibleAlignment)) == _Alignof(long long), "");
60
_Alignas(_Alignof(long long)) long long CompatibleAlignment; // Okay, alignment is the same as the implied alignment
61
62
_Alignas(_Alignof(long long)) long long CompatibleAlignment2; // expected-note {{declared with '_Alignas' attribute here}}
0 commit comments