Skip to content

Commit

Permalink
Merge pull request #921 from llucax/test8016
Browse files Browse the repository at this point in the history
Add test case for bug 8016
  • Loading branch information
WalterBright committed May 3, 2012
2 parents c947c20 + fb797c2 commit 731fb84
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/runnable/imports/link8016b.d
@@ -0,0 +1,2 @@
module imports.link8016b;
import link8016;
26 changes: 26 additions & 0 deletions test/runnable/link8016.d
@@ -0,0 +1,26 @@
// COMPILE_SEPARATELY
// EXTRA_SOURCES: imports/link8016b.d
// PERMUTE_ARGS:

import imports.link8016b;

private void t(alias Code)()
{
return Code();
}

void f()
{
t!( () { } )();
}

bool forceSemantic8016()
{
f();
return true;
}
static assert(forceSemantic8016());

void main() {
f();
}

0 comments on commit 731fb84

Please sign in to comment.