summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/attr_optimize2.d
blob: 13bc1d7cb6ed6c1e1e310776801d4cca8953b69b (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }

import gcc.attributes;

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