summaryrefslogtreecommitdiff
path: root/test/Sema/ast-print-x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/ast-print-x86.c')
-rw-r--r--test/Sema/ast-print-x86.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Sema/ast-print-x86.c b/test/Sema/ast-print-x86.c
new file mode 100644
index 0000000000000..0059776b3dc1e
--- /dev/null
+++ b/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) );
+}