[Issue 17747] New: extern(C) shared static module constructor should be called in betterC programs
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Aug 12 05:54:00 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17747
Issue ID: 17747
Summary: extern(C) shared static module constructor should be
called in betterC programs
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: blocker
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ilyayaroshenko at gmail.com
This
extern(C) shared static this()
{
...
}
and
pragma(mangle, "a_name")
extern(C) shared static this()
{
...
}
should be called in betterC single file program with main.
If I am not wrong they can be called before C main, in start.
OS: macos
DMD version: 2.075
--
More information about the Digitalmars-d-bugs
mailing list