Skip to content

Commit

Permalink
Fix Issue 19014 - Compiler imports symbols that aren't actually imported
Browse files Browse the repository at this point in the history
  • Loading branch information
JinShil committed Dec 9, 2018
1 parent 950fee9 commit 00b990f
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 00b990f

Please sign in to comment.