summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2004-03-16-AsmRegisterCrash.c
blob: 515d2436b1a8262d2e912f973e19224422a5f878 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
// XFAIL: *
// XTARGET: arm, i386, i686, x86_64

int foo() {
#ifdef __arm__
  register int X __asm__("r1");
#else
  register int X __asm__("ebx");
#endif
  return X;
}