1 /* PR c/37772 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4 
5 void
foo()6 foo ()
7 {
8   int i;
9   asm ();		  /* { dg-error "expected string literal before" } */
10   asm (1);		  /* { dg-error "expected string literal before" } */
11   asm (int);		  /* { dg-error "expected string literal before" } */
12   asm (: "=r" (i));	  /* { dg-error "expected string literal before" } */
13   asm (1 : "=r" (i));	  /* { dg-error "expected string literal before" } */
14   asm (int : "=r" (i));	  /* { dg-error "expected string literal before" } */
15   asm (: : "r" (i));	  /* { dg-error "expected string literal before" } */
16   asm (1 : : "r" (i));	  /* { dg-error "expected string literal before" } */
17   asm (int : : "r" (i));  /* { dg-error "expected string literal before" } */
18   asm (: : : "memory");	  /* { dg-error "expected string literal before" } */
19   asm (1 : : : "memory"); /* { dg-error "expected string literal before" } */
20 }
21