diff options
Diffstat (limited to 'test/FrontendC++')
-rw-r--r-- | test/FrontendC++/2006-11-30-Pubnames.cpp | 6 | ||||
-rw-r--r-- | test/FrontendC++/2009-08-03-Varargs.cpp | 5 | ||||
-rw-r--r-- | test/FrontendC++/m64-ptr.cpp | 18 | ||||
-rw-r--r-- | test/FrontendC++/msasm.cpp | 23 |
4 files changed, 23 insertions, 29 deletions
diff --git a/test/FrontendC++/2006-11-30-Pubnames.cpp b/test/FrontendC++/2006-11-30-Pubnames.cpp index 48ad827f76c83..64214a8d0094f 100644 --- a/test/FrontendC++/2006-11-30-Pubnames.cpp +++ b/test/FrontendC++/2006-11-30-Pubnames.cpp @@ -7,7 +7,11 @@ // RUN: %llvmdsymutil %t.exe // RUN: echo {break main\nrun\np Pubnames::pubname} > %t.in // RUN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | grep {\$1 = 10} -// XFAIL: alpha,arm +// +// XFAIL: alpha,arm,powerpc-apple-darwin +// FIXME: This doesn't work for PPC Darwin because we turned off debugging on +// that platform. + struct Pubnames { static int pubname; }; diff --git a/test/FrontendC++/2009-08-03-Varargs.cpp b/test/FrontendC++/2009-08-03-Varargs.cpp deleted file mode 100644 index cea3894c84e68..0000000000000 --- a/test/FrontendC++/2009-08-03-Varargs.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// RUN: %llvmgxx %s -S -emit-llvm -o - | grep _Z1az\(\.\.\.\) -// XFAIL: * -// PR4678 -void a(...) { -} diff --git a/test/FrontendC++/m64-ptr.cpp b/test/FrontendC++/m64-ptr.cpp new file mode 100644 index 0000000000000..7685cfeaa026c --- /dev/null +++ b/test/FrontendC++/m64-ptr.cpp @@ -0,0 +1,18 @@ +// RUN: %llvmgxx %s -S -o - | FileCheck %s + +// Make sure pointers are passed as pointers, not converted to int. +// The first load should be of type i8** in either 32 or 64 bit mode. +// This formerly happened on x86-64, 7375899. + +class StringRef { +public: + const char *Data; + long Len; +}; +void foo(StringRef X); +void bar(StringRef &A) { +// CHECK: @_Z3barR9StringRef +// CHECK: load i8** + foo(A); +// CHECK: ret void +} diff --git a/test/FrontendC++/msasm.cpp b/test/FrontendC++/msasm.cpp deleted file mode 100644 index d8d1f378618d4..0000000000000 --- a/test/FrontendC++/msasm.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// RUN: %llvmgxx %s -fasm-blocks -S -o - | FileCheck %s -// Complicated expression as jump target -// XFAIL: * -// XTARGET: x86,i386,i686 - -void Method3() -{ -// CHECK: Method3 -// CHECK-NOT: msasm - asm("foo:"); -// CHECK: return -} - -void Method4() -{ -// CHECK: Method4 -// CHECK: msasm - asm { - bar: - } -// CHECK: return -} - |