blob: 515d2436b1a8262d2e912f973e19224422a5f878 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
Eric Christopher22234412011-07-27 23:44:48 +00002// XFAIL: *
NAKAMURA Takumi27f1e7e2011-07-28 11:25:02 +00003// XTARGET: arm, i386, i686, x86_64
Eric Christopher3883e662011-07-26 22:17:02 +00004
5int foo() {
Eric Christopher22234412011-07-27 23:44:48 +00006#ifdef __arm__
Eric Christopher3883e662011-07-26 22:17:02 +00007 register int X __asm__("r1");
8#else
9 register int X __asm__("ebx");
10#endif
11 return X;
12}