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))); +}