Skip to content

Commit

Permalink
Merge pull request #9050 from JinShil/fix_19014
Browse files Browse the repository at this point in the history
Fix Issue 19014 - Compiler imports symbols that aren't actually imported
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
  • Loading branch information
dlang-bot committed Dec 9, 2018
2 parents 8acdaca + 00b990f commit 3d86635
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/compilable/test19014.d
@@ -0,0 +1,12 @@
// https://issues.dlang.org/show_bug.cgi?id=19014

import core.stdc.config;

void main()
{
if (true)
{
static import core.stdc.math;
}
static assert(!__traits(compiles, core.stdc.math.cos(0)));
}

0 comments on commit 3d86635

Please sign in to comment.