Skip to content

Commit

Permalink
Add test case to cover version.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
H. S. Teoh committed Nov 28, 2014
1 parent c0e8143 commit b0f168b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/fail_compilation/test13786.d
@@ -0,0 +1,20 @@
/*
TEST_OUTPUT:
---
fail_compilation/test13786.d(14): Error: debug __anonymous level declaration must be at module level
fail_compilation/test13786.d(15): Error: debug abc declaration must be at module level
fail_compilation/test13786.d(16): Error: version __anonymous level declaration must be at module level
fail_compilation/test13786.d(17): Error: version abc declaration must be at module level
fail_compilation/test13786.d(20): Error: template instance test13786.T!() error instantiating
---
*/

template T()
{
debug = 123;
debug = abc;
version = 123;
version = abc;
}

alias X = T!();

0 comments on commit b0f168b

Please sign in to comment.