1 /* { dg-do compile } */ 2 /* { dg-options "-O2" } */ 3 4 int result __attribute__ ((zero_call_used_regs("all"))); /* { dg-error "attribute applies only to functions" } */ 5 int 6 __attribute__ ((zero_call_used_regs("gpr-arg-all"))) foo1(int x)7foo1 (int x) /* { dg-error "unrecognized 'zero_call_used_regs' attribute argument" } */ 8 { 9 return (x + 1); 10 } 11 int 12 __attribute__ ((zero_call_used_regs(1))) foo2(int x)13foo2 (int x) /* { dg-error "argument not a string" } */ 14 { 15 return (x + 2); 16 } 17