mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-05-01 07:51:29 +02:00
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
Fixed: tango.io.Console seems to be working now.
This commit is contained in:
12
suite/dwarfdebug/dwarf1/app.d
Normal file
12
suite/dwarfdebug/dwarf1/app.d
Normal file
@@ -0,0 +1,12 @@
|
||||
module app;
|
||||
import lib;
|
||||
|
||||
void func()
|
||||
{
|
||||
lib_func();
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
func();
|
||||
}
|
||||
3
suite/dwarfdebug/dwarf1/build.sh
Executable file
3
suite/dwarfdebug/dwarf1/build.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
llvmdc lib.d -c -g -dis
|
||||
llvmdc app.d lib.bc -g -dis -ofapp
|
||||
7
suite/dwarfdebug/dwarf1/lib.d
Normal file
7
suite/dwarfdebug/dwarf1/lib.d
Normal file
@@ -0,0 +1,7 @@
|
||||
module lib;
|
||||
|
||||
void lib_func()
|
||||
{
|
||||
int* p;
|
||||
*p = 666;
|
||||
}
|
||||
14
suite/dwarfdebug/dwarf2/app.d
Normal file
14
suite/dwarfdebug/dwarf2/app.d
Normal file
@@ -0,0 +1,14 @@
|
||||
module app;
|
||||
import lib;
|
||||
|
||||
void func()
|
||||
{
|
||||
int* ip;
|
||||
int i = lib_templ_func(ip);
|
||||
}
|
||||
|
||||
int main(char[][] args)
|
||||
{
|
||||
func();
|
||||
return 0;
|
||||
}
|
||||
3
suite/dwarfdebug/dwarf2/build.sh
Executable file
3
suite/dwarfdebug/dwarf2/build.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
llvmdc lib.d -c -g -dis
|
||||
llvmdc app.d lib.bc -g -dis -ofapp
|
||||
6
suite/dwarfdebug/dwarf2/lib.d
Normal file
6
suite/dwarfdebug/dwarf2/lib.d
Normal file
@@ -0,0 +1,6 @@
|
||||
module lib;
|
||||
|
||||
T lib_templ_func(T)(T* a)
|
||||
{
|
||||
return *a;
|
||||
}
|
||||
Reference in New Issue
Block a user