mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-10-22 02:37:26 +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:
@@ -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;
|
||||
}
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
llvmdc lib.d -c -g -dis
|
||||
llvmdc app.d lib.bc -g -dis -ofapp
|
||||
@@ -0,0 +1,6 @@
|
||||
module lib;
|
||||
|
||||
T lib_templ_func(T)(T* a)
|
||||
{
|
||||
return *a;
|
||||
}
|
||||
Reference in New Issue
Block a user