diff options
Diffstat (limited to 'clang/test/Sema/ast-print-x86.c')
| -rw-r--r-- | clang/test/Sema/ast-print-x86.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Sema/ast-print-x86.c b/clang/test/Sema/ast-print-x86.c new file mode 100644 index 00000000000..0059776b3dc --- /dev/null +++ b/clang/test/Sema/ast-print-x86.c @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -triple i686-elf %s -ast-print | FileCheck %s + +// REQUIRES: x86-registered-target + +void assembly() { + int added; + // CHECK: asm volatile ("addl %%ebx,%%eax" : "=a" (added) : "a" (1), "b" (2)); + __asm__ __volatile__("addl %%ebx,%%eax" : "=a" (added) : "a" (1), "b" (2) ); +} |

