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