1 /* { dg-do compile } */ 2 const int i = 0; 3 f(void)4void f(void) 5 { 6 __asm__ __volatile__ ("" : "=m" (i)); /* { dg-error "read-only variable" } */ 7 8 } 9 g(const int set)10void g(const int set) 11 { 12 __asm__ __volatile__ ("" : "=r" (set)); /* { dg-error "read-only parameter" } */ 13 } 14 15 16