May 22, 2017
https://issues.dlang.org/show_bug.cgi?id=17419

          Issue ID: 17419
           Summary: add __traits(getLinkage, s) to the the linkage of
                    symbol s
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: bugzilla@digitalmars.com

Passing symbol 's' to __traits(getLinkage, s) will return one of:

"D"
"C"
"C++"
"Windows"
"Pascal"
"Objective-C"
"System"

--