mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-20 13:43:13 +01:00
[svn r124] Fixed another D vararg + return in ptr bug.
Fixed some nested function calls failed to resolve the context ptr.
This commit is contained in:
17
test/bug77.d
Normal file
17
test/bug77.d
Normal file
@@ -0,0 +1,17 @@
|
||||
module bug77;
|
||||
import std.c.string;
|
||||
void main()
|
||||
{
|
||||
size_t len;
|
||||
void func2()
|
||||
{
|
||||
char* prefix = "";
|
||||
|
||||
void func()
|
||||
{
|
||||
len = strlen(prefix);
|
||||
assert(len == 0);
|
||||
}
|
||||
}
|
||||
func2();
|
||||
}
|
||||
Reference in New Issue
Block a user