mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
12 lines
259 B
D
12 lines
259 B
D
// REQUIRED_ARGS: -unittest
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=15712
|
|
// extern(C) attribute inside extern(C) unittest is incorrectly ignored
|
|
|
|
extern(C):
|
|
|
|
unittest
|
|
{
|
|
extern(C) static void foo() {}
|
|
static assert(__traits(getLinkage, foo) == "C");
|
|
}
|