Commit 5112abec by Martin Sebor

PR c/69507 - bogus warning: ISO C does not allow ‘__alignof__ (expression)’

From-SVN: r237582
parent aa0db437
/* PR c/69507 - bogus warning: ISO C does not allow '__alignof__ (expression)'
*/
/* { dg-do compile } */
/* { dg-options "-std=c11 -Wno-error -Wpedantic" } */
extern int e;
int a[] = {
__alignof__ (e),
_Alignof (e) /* { dg-warning "ISO C does not allow ._Alignof \\(expression\\)." } */
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment