| 1 |
/* REQUIRED_ARGS: -vtemplates |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
compilable/vtemplates.d(10): vtemplate: 4 (3 distinct) instantiation(s) of template `foo(int I)()` found |
| 5 |
compilable/vtemplates.d(11): vtemplate: 5 (2 distinct) instantiation(s) of template `goo1(int I)()` found |
| 6 |
compilable/vtemplates.d(12): vtemplate: 3 (2 distinct) instantiation(s) of template `goo2(int I)()` found |
| 7 |
--- |
| 8 |
*/ |
| 9 |
|
| 10 |
void foo(int I)() { } |
| 11 |
void goo1(int I)() { } |
| 12 |
void goo2(int I)() { goo1!(I); } |
| 13 |
|
| 14 |
void test() |
| 15 |
{ |
| 16 |
foo!(1)(); |
| 17 |
foo!(1)(); |
| 18 |
foo!(2)(); |
| 19 |
foo!(3)(); |
| 20 |
|
| 21 |
goo1!(1)(); |
| 22 |
goo1!(1)(); |
| 23 |
goo1!(2)(); |
| 24 |
|
| 25 |
goo2!(1)(); |
| 26 |
goo2!(2)(); |
| 27 |
goo2!(2)(); |
| 28 |
} |