Fix LDRi12 immediate operand, which was changed to be the second operand in $addrmode...
[oota-llvm.git] / test / FrontendC++ / m64-ptr.cpp
1 // RUN: %llvmgxx %s -S -o - | FileCheck %s
2 // XFAIL: powerpc-apple-darwin
3
4 // Make sure pointers are passed as pointers, not converted to int.
5 // The first load should be of type i8** in either 32 or 64 bit mode.
6 // This formerly happened on x86-64, 7375899.
7
8 class StringRef {
9 public:
10   const char *Data;
11   long Len;
12 };
13 void foo(StringRef X);
14 void bar(StringRef &A) {
15 // CHECK: @_Z3barR9StringRef
16 // CHECK: load i8**
17   foo(A);
18 // CHECK: ret void
19 }