[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:
Tomas Lindquist Olsen
2008-01-22 00:01:16 +01:00
parent 7825be29ee
commit 94c47aa1fa
33 changed files with 194 additions and 108 deletions

View File

@@ -0,0 +1,12 @@
module app;
import lib;
void func()
{
lib_func();
}
void main()
{
func();
}

View File

@@ -0,0 +1,3 @@
#!/bin/bash
llvmdc lib.d -c -g -dis
llvmdc app.d lib.bc -g -dis -ofapp

View File

@@ -0,0 +1,7 @@
module lib;
void lib_func()
{
int* p;
*p = 666;
}

View 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;
}

View File

@@ -0,0 +1,3 @@
#!/bin/bash
llvmdc lib.d -c -g -dis
llvmdc app.d lib.bc -g -dis -ofapp

View File

@@ -0,0 +1,6 @@
module lib;
T lib_templ_func(T)(T* a)
{
return *a;
}