summaryrefslogtreecommitdiff
path: root/test/Sema/ast-print-x86.c
blob: 0059776b3dc1e0b7ee914cf7712a17c5156502b5 (plain)
1
2
3
4
5
6
7
8
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) );
}