]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/asm-qual-1.c
gcc/ada/ChangeLog:
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / asm-qual-1.c
CommitLineData
1ba73f97 1/* Test that qualifiers other than volatile are disallowed on asm. */
21d47057 2/* Origin: Joseph Myers <joseph@codesourcery.com> */
3/* { dg-do compile } */
4/* { dg-options "-std=gnu99" } */
5
6void
7f (void)
8{
9 asm volatile ("");
1ba73f97 10
85b9be9b 11 asm const (""); /* { dg-error {'const' is not a valid 'asm' qualifier} } */
1ba73f97 12
85b9be9b 13 asm restrict (""); /* { dg-error {'restrict' is not a valid 'asm' qualifier} } */
21d47057 14}