(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.dg/
attr_optimize2.d
// { dg-do compile }

import gcc.attributes;

@optimize(-1)
int non_negative() // { dg-error "argument to .-O. should be a non-negative integer" }
{
    return 0;
}