"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/debuginfo/classtypes_gdb.d" between
ldc-1.32.1.tar.gz and ldc-1.32.2.tar.gz

About: LDC is a LLVM-based D compiler.

classtypes_gdb.d  (ldc-1.32.1):classtypes_gdb.d  (ldc-1.32.2)
// REQUIRES: gdb // REQUIRES: gdb
// This test fails due to newer version of GDB, see https://github.com/ldc-devel
opers/ldc/issues/4389
// XFAIL: FreeBSD
// RUN: %ldc %_gdb_dflags -g -of=%t %s // RUN: %ldc %_gdb_dflags -g -of=%t %s
// RUN: sed -e "/^\\/\\/ GDB:/!d" -e "s,// GDB:,," %s >%t.gdb // RUN: sed -e "/^\\/\\/ GDB:/!d" -e "s,// GDB:,," %s >%t.gdb
// RUN: gdb %t --batch -x %t.gdb >%t.out 2>&1 // RUN: gdb %t --batch -x %t.gdb >%t.out 2>&1
// RUN: FileCheck %s -check-prefix=CHECK < %t.out // RUN: FileCheck %s -check-prefix=CHECK < %t.out
module classtypes_gdb; module classtypes_gdb;
class uv class uv {
{
uint i; uint i;
} }
class xyz : uv class xyz : uv {
{
float f; float f;
double d; double d;
this(uint i, float f) { this.i = i; this.f = f; } this(uint i, float f) { this.i = i; this.f = f; }
} }
// There are debug info issues with TLS variables when LDC is built within older environments (incl. Travis). // There are debug info issues with TLS variables when LDC is built within older environments (incl. Travis).
__gshared uv gvar; __gshared uv gvar;
static this() { gvar = new xyz(12, 34.56); } static this() { gvar = new xyz(12, 34.56); }
int main() int main() {
{
xyz[4] sarr; xyz[4] sarr;
xyz* ptr; xyz* ptr;
xyz lvar; xyz lvar;
lvar = new xyz(99, 88.77); lvar = new xyz(99, 88.77);
lvar.d = 624.351; lvar.d = 624.351;
sarr[2] = new xyz(2, 2.0); sarr[2] = new xyz(2, 2.0);
sarr[2].d = 0.987; sarr[2].d = 0.987;
ptr = &lvar; ptr = &lvar;
// BP // BP
 End of changes. 4 change blocks. 
6 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)