| 1 | // Header for the PCH test asm.c |
|---|---|
| 2 | |
| 3 | void f() { |
| 4 | int i; |
| 5 | |
| 6 | asm ("foo\n" : : "a" (i + 2)); |
| 7 | asm ("foo\n" : [symbolic_name] "=a" (i) : "[symbolic_name]" (i)); |
| 8 | } |
| 9 | |
| 10 | void clobbers() { |
| 11 | asm ("nop" : : : "ax", "#ax", "%ax"); |
| 12 | asm ("nop" : : : "eax", "rax", "ah", "al"); |
| 13 | asm ("nop" : : : "0", "%0", "#0"); |
| 14 | } |
| 15 |