__declspec(align(16)) char foo; static_assert(__alignof(decltype(foo)) != __alignof(foo), "Alignment isn't part of type."); typedef __declspec(align(16)) char aligned_char; aligned_char bar; static_assert(__alignof(decltype(bar)) == __alignof(bar), "Alignment is part of type");