<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">This test shows that alignas() is ignored when used with #pragma.<div>Is this intentional behavior?</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#pragma pack(push, 1)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">struct S1 { char a; short b; double c; alignas(32) double d; char e; double f; };</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#pragma pack(pop)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">int main()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">{</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> return sizeof(struct S1);</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">}</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">- Thanks, Fariborz</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div></body></html>