(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
fail_compilation/
imphint.d
/*
TEST_OUTPUT:
---
fail_compilation/imphint.d(53): Error: `printf` is not defined, perhaps `import core.stdc.stdio;` is needed?
fail_compilation/imphint.d(54): Error: `writeln` is not defined, perhaps `import std.stdio;` is needed?
fail_compilation/imphint.d(55): Error: `sin` is not defined, perhaps `import std.math;` is needed?
fail_compilation/imphint.d(56): Error: `cos` is not defined, perhaps `import std.math;` is needed?
fail_compilation/imphint.d(57): Error: `sqrt` is not defined, perhaps `import std.math;` is needed?
fail_compilation/imphint.d(58): Error: `fabs` is not defined, perhaps `import std.math;` is needed?
fail_compilation/imphint.d(61): Error: `AliasSeq` is not defined, perhaps `import std.meta;` is needed?
fail_compilation/imphint.d(62): Error: `appender` is not defined, perhaps `import std.array;` is needed?
fail_compilation/imphint.d(63): Error: `array` is not defined, perhaps `import std.array;` is needed?
fail_compilation/imphint.d(64): Error: `calloc` is not defined, perhaps `import core.stdc.stdlib;` is needed?
fail_compilation/imphint.d(65): Error: `chdir` is not defined, perhaps `import std.file;` is needed?
fail_compilation/imphint.d(66): Error: `dirEntries` is not defined, perhaps `import std.file;` is needed?
fail_compilation/imphint.d(67): Error: `drop` is not defined, perhaps `import std.range;` is needed?
fail_compilation/imphint.d(68): Error: `each` is not defined, perhaps `import std.algorithm;` is needed?
fail_compilation/imphint.d(69): Error: `empty` is not defined, perhaps `import std.range;` is needed?
fail_compilation/imphint.d(70): Error: `enumerate` is not defined, perhaps `import std.range;` is needed?
fail_compilation/imphint.d(71): Error: `endsWith` is not defined, perhaps `import std.algorithm;` is needed?
fail_compilation/imphint.d(72): Error: `enforce` is not defined, perhaps `import std.exception;` is needed?
fail_compilation/imphint.d(73): Error: `equal` is not defined, perhaps `import std.algorithm;` is needed?
fail_compilation/imphint.d(74): Error: `exists` is not defined, perhaps `import std.file;` is needed?
fail_compilation/imphint.d(75): Error: `filter` is not defined, perhaps `import std.algorithm;` is needed?
fail_compilation/imphint.d(76): Error: `format` is not defined, perhaps `import std.format;` is needed?
fail_compilation/imphint.d(77): Error: `free` is not defined, perhaps `import core.stdc.stdlib;` is needed?
fail_compilation/imphint.d(78): Error: `front` is not defined, perhaps `import std.range;` is needed?
fail_compilation/imphint.d(79): Error: `iota` is not defined, perhaps `import std.range;` is needed?
fail_compilation/imphint.d(80): Error: `isDir` is not defined, perhaps `import std.file;` is needed?
fail_compilation/imphint.d(81): Error: `isFile` is not defined, perhaps `import std.file;` is needed?
fail_compilation/imphint.d(82): Error: `join` is not defined, perhaps `import std.array;` is needed?
fail_compilation/imphint.d(83): Error: `joiner` is not defined, perhaps `import std.algorithm;` is needed?
fail_compilation/imphint.d(84): Error: `malloc` is not defined, perhaps `import core.stdc.stdlib;` is needed?
fail_compilation/imphint.d(85): Error: `map` is not defined, perhaps `import std.algorithm;` is needed?
fail_compilation/imphint.d(86): Error: `max` is not defined, perhaps `import std.algorithm;` is needed?
fail_compilation/imphint.d(87): Error: `min` is not defined, perhaps `import std.algorithm;` is needed?
fail_compilation/imphint.d(88): Error: `mkdir` is not defined, perhaps `import std.file;` is needed?
fail_compilation/imphint.d(89): Error: `popFront` is not defined, perhaps `import std.range;` is needed?
fail_compilation/imphint.d(90): Error: `realloc` is not defined, perhaps `import core.stdc.stdlib;` is needed?
fail_compilation/imphint.d(91): Error: `replace` is not defined, perhaps `import std.array;` is needed?
fail_compilation/imphint.d(92): Error: `rmdir` is not defined, perhaps `import std.file;` is needed?
fail_compilation/imphint.d(93): Error: `sort` is not defined, perhaps `import std.algorithm;` is needed?
fail_compilation/imphint.d(94): Error: `split` is not defined, perhaps `import std.array;` is needed?
fail_compilation/imphint.d(95): Error: `startsWith` is not defined, perhaps `import std.algorithm;` is needed?
fail_compilation/imphint.d(96): Error: `take` is not defined, perhaps `import std.range;` is needed?
fail_compilation/imphint.d(97): Error: `text` is not defined, perhaps `import std.conv;` is needed?
fail_compilation/imphint.d(98): Error: `to` is not defined, perhaps `import std.conv;` is needed?
---
*/

void foo()
{
    printf("hello world\n");
    writeln("hello world\n");
    sin(3.6);
    cos(1.2);
    sqrt(2.0);
    fabs(-3);


    AliasSeq();
    appender();
    array();
    calloc();
    chdir();
    dirEntries();
    drop();
    each();
    empty();
    enumerate();
    endsWith();
    enforce();
    equal();
    exists();
    filter();
    format();
    free();
    front();
    iota();
    isDir();
    isFile();
    join();
    joiner();
    malloc();
    map();
    max();
    min();
    mkdir();
    popFront();
    realloc();
    replace();
    rmdir();
    sort();
    split();
    startsWith();
    take();
    text();
    to();
}