summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/asm-qual-1.c
blob: 5ec9a29a9108386334e5e6dc6c78f2e74a8d1222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test that qualifiers other than volatile are ignored on asm.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */

void
f (void)
{
  asm volatile ("");
  asm const (""); /* { dg-warning "const qualifier ignored on asm" } */
  asm restrict (""); /* { dg-warning "restrict qualifier ignored on asm" } */
}