c++: fix explicit/copy problem [PR109247]
[official-gcc.git] / gcc / testsuite / gdc.dg / pr96254b.d
blob02e3c484d26e837c71bbc5333b54e5256c495026
1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96254
2 // { dg-do compile }
3 mixin template test()
5 int next;
8 void foo(alias l)()
10 l.next = 0; // { dg-error "cannot get frame pointer to 'D main'" }
13 void bar(alias l, alias t)()
15 l.next = 0; // { dg-error "cannot get frame pointer to 'D main'" }
18 void main()
20 mixin test l1;
21 mixin test l2;
22 foo!(l1);
23 bar!(l1,l2);