asm_05_register_label_scope.c (333B)
1 /* An asm label belongs to the declarator that parsed it. A label on a separate 2 * non-register local must not leak into a later register variable and become a 3 * hard-register pin. */ 4 5 int test_main(void) { 6 long other __asm__("notareg") = 0; 7 register long v = 42; 8 __asm__ volatile("" : : "r"(v)); 9 return (int)(v + other); 10 }