blob: 3fba592ee991f4a571bb427ce8a9839821f18671 [file] [log] [blame]
// Test that qualifiers other than volatile are disallowed on asm.
// { dg-do compile }
// { dg-options "-std=gnu++98" }
void
f ()
{
asm volatile ("");
asm const (""); // { dg-error {'const' is not an asm qualifier} }
asm __restrict (""); // { dg-error {'__restrict' is not an asm qualifier} }
}