summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail133.d
blob: 29b7d40975cc420901e1a9b81f2eca40ccc16a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
TEST_OUTPUT:
---
fail_compilation/fail133.d(13): Error: function `D main` circular dependency. Functions cannot be interpreted while being compiled
fail_compilation/fail133.d(15):        called from here: `main()`
---
*/

template t(int t)
{
}

int main()
{
    return t!(main() + 8);
}