Mercurial > projects > ldc
annotate tests/mini/emptytuple.d @ 650:aa6a0b7968f7
Added test case for bug #100
Removed dubious check for not emitting static private global in other modules without access. This should be handled properly somewhere else, it's causing unresolved global errors for stuff that should work (in MiniD)
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 05 Oct 2008 17:28:15 +0200 |
parents | e739ef5dfff0 |
children |
rev | line source |
---|---|
513
ce57106d2619
Add minitest for broken empty template tuple parameters. Fix this one!
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
1 template T(B...) { |
ce57106d2619
Add minitest for broken empty template tuple parameters. Fix this one!
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
2 typedef B TArgs; |
ce57106d2619
Add minitest for broken empty template tuple parameters. Fix this one!
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
3 } |
ce57106d2619
Add minitest for broken empty template tuple parameters. Fix this one!
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
4 |
ce57106d2619
Add minitest for broken empty template tuple parameters. Fix this one!
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
5 int main(){ |
ce57106d2619
Add minitest for broken empty template tuple parameters. Fix this one!
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
6 alias T!() instantiate; |
ce57106d2619
Add minitest for broken empty template tuple parameters. Fix this one!
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
7 return 0; |
ce57106d2619
Add minitest for broken empty template tuple parameters. Fix this one!
Christian Kamm <kamm incasoftware de>
parents:
diff
changeset
|
8 } |