RTEMS: Add Cortex-M33 multilib
[gcc.git] / gcc / testsuite / g++.dg / asm-qual-1.C
blob1bb217fa99bfb119580448ca7b4e5cea56d8de0a
1 // Test that qualifiers other than volatile are disallowed on asm.
2 // { dg-do compile }
3 // { dg-options "-std=gnu++98" }
5 void
6 f ()
8   asm volatile ("");
10   asm const (""); // { dg-error {'const' is not an 'asm' qualifier} }
12   asm __restrict (""); // { dg-error {'__restrict' is not an 'asm' qualifier} }