blob: a568058d58f665d303ef2ecb6581990304f1140c [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001// Header for the PCH test asm.c
2
3void 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
10void clobbers() {
11 asm ("nop" : : : "ax", "#ax", "%ax");
12 asm ("nop" : : : "eax", "rax", "ah", "al");
13 asm ("nop" : : : "0", "%0", "#0");
14}