From 00b990f8f96903a1fc6264c678fef6a58542f0c2 Mon Sep 17 00:00:00 2001 From: JinShil Date: Sun, 9 Dec 2018 19:23:35 +0900 Subject: [PATCH] Fix Issue 19014 - Compiler imports symbols that aren't actually imported --- test/compilable/test19014.d | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/compilable/test19014.d diff --git a/test/compilable/test19014.d b/test/compilable/test19014.d new file mode 100644 index 000000000000..7bbbc941abeb --- /dev/null +++ b/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))); +}