This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / FrontendC++ / m64-ptr.cpp
blobf91e2f4f858d47ea1193f66febdb71dc3a3e777c
1 // RUN: %llvmgxx %s -S -o - | FileCheck %s
2 // XFAIL: powerpc-apple-darwin
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.
8 class StringRef {
9 public:
10 const char *Data;
11 long Len;
13 void foo(StringRef X);
14 void bar(StringRef &A) {
15 // CHECK: @_Z3barR9StringRef
16 // CHECK: load i8**
17 foo(A);
18 // CHECK: ret void