blob: a568058d58f665d303ef2ecb6581990304f1140c [file] [log] [blame]
Douglas Gregorcd7d5a92009-04-17 20:57:14 +00001// 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}