Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/asm-qual-3.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 /* Test that asm-qualifiers are not allowed on toplevel asm. */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-std=gnu99" } */ | |
4 | |
5 asm const (""); /* { dg-error {expected '\(' before 'const'} } */ | |
6 asm volatile (""); /* { dg-error {expected '\(' before 'volatile'} } */ | |
7 asm restrict (""); /* { dg-error {expected '\(' before 'restrict'} } */ | |
8 asm inline (""); /* { dg-error {expected '\(' before 'inline'} } */ | |
9 asm goto (""); /* { dg-error {expected '\(' before 'goto'} } */ |