xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/asm.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // Header for the PCH test asm.c
2 
f()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 
clobbers()10 void clobbers() {
11   asm ("nop" : : : "ax", "#ax", "%ax");
12   asm ("nop" : : : "eax", "rax", "ah", "al");
13   asm ("nop" : : : "0", "%0", "#0");
14 }
15