[Issue 15712] New: nested functions in unittests extern(C) not applied
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Feb 21 02:17:23 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15712
Issue ID: 15712
Summary: nested functions in unittests extern(C) not applied
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: john.loughran.colvin at gmail.com
% cat test.d
extern(C):
unittest
{
extern(C) static void foo(){};
pragma(msg, typeof(foo));
pragma(msg, typeof(&foo));
}
% dmd test.d
void()
void function()
Seems that somehow the two extern(C)s cancel out.
--
More information about the Digitalmars-d-bugs
mailing list