blob: eff6b45d2170e643b31f7f6504f35ece0fffa620 [file] [log] [blame]
/* Test that qualifiers other than volatile are disallowed on asm. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
void
f (void)
{
asm volatile ("");
asm const (""); /* { dg-error {'const' is not an asm qualifier} } */
asm restrict (""); /* { dg-error {'restrict' is not an asm qualifier} } */
}