ldc/tests/linking/ir2obj_caching.d

16 lines
565 B
D

// Test recognition of -cache commandline flag
// RUN: %ldc -cache=%T/cachedirectory %s -vv | FileCheck --check-prefix=FIRST %s \
// RUN: && %ldc -cache=%T/cachedirectory %s -vv | FileCheck --check-prefix=SECOND %s
// FIRST: Use IR-to-Object cache in {{.*}}cachedirectory
// Don't check whether the object is in the cache on the first run, because if this test is ran twice the cache will already be there.
// SECOND: Use IR-to-Object cache in {{.*}}cachedirectory
// SECOND: Cache object found!
// SECOND: SymLink output to cached object file
void main()
{
}