libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / asm-qual-3.c
blobf85d8bff8981ba7bfea1aeb4e9e49fcc5f603e97
1 /* Test that asm-qualifiers are not allowed on toplevel asm. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99" } */
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'} } */