(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
test22646.d
// https://issues.dlang.org/show_bug.cgi?id=22646

/*
TEST_OUTPUT:
---
true
true
false
false
---
*/

static template Bug(string name)
{
    enum bool ok = name.length < 3 || name[0..3] != "pad";
}

pragma(msg, Bug!"x".ok);
pragma(msg, Bug!"foo".ok);
pragma(msg, Bug!"pad".ok);
pragma(msg, Bug!"pad123".ok);