☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.dg
/
nogc1.d
☽
☼
gcc/testsuite/gdc.dg/nogc1.d
code
plain
raw
1
// { dg-do compile }
2
// { dg-options "-fno-druntime" }
3
// { dg-shouldfail "expressions depend on GC" }
4
5
string testConcat(string a, string b)
6
{
7
return a ~ b; // { dg-error "requires the GC and cannot be used with .-fno-druntime." }
8
}