[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / asm.h
blob01734b61a1af5118148e5595c12e9cff7a6c26ff
1 // Header for the PCH test asm.c
3 void f(void) {
4 int i,cond;
6 asm ("foo\n" : : "a" (i + 2));
7 asm ("foo\n" : [symbolic_name] "=a" (i) : "[symbolic_name]" (i));
8 asm volatile goto("testl %0, %0; jne %l1;" :: "r"(cond)::label_true, loop);
9 label_true:
10 loop:
11 return;
14 void clobbers(void) {
15 asm ("nop" : : : "ax", "#ax", "%ax");
16 asm ("nop" : : : "eax", "rax", "ah", "al");
17 asm ("nop" : : : "0", "%0", "#0");