1 int count = 0; 2 int dummy; 3 4 static int * bar(void)5 bar(void) 6 { 7 ++count; 8 return &dummy; 9 } 10 11 static void foo(void)12 foo(void) 13 { 14 asm("" : "+r"(*bar())); 15 } 16 main()17 main() 18 { 19 foo(); 20 if (count != 1) 21 abort(); 22 exit(0); 23 } 24