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: [email protected]
          Reporter: [email protected]

% 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.

--

Reply via email to