]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/asm-qual-1.C
gcc/ada/ChangeLog:
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / asm-qual-1.C
CommitLineData
04ec7296 1// Test that qualifiers other than volatile are disallowed on asm.
2// { dg-do compile }
3// { dg-options "-std=gnu++98" }
4
5void
6f ()
7{
8 asm volatile ("");
9
85b9be9b 10 asm const (""); // { dg-error {'const' is not an 'asm' qualifier} }
04ec7296 11
85b9be9b 12 asm __restrict (""); // { dg-error {'__restrict' is not an 'asm' qualifier} }
04ec7296 13}