Debian Codegraph @

gcc/testsuite/g++.dg/ext/attr-constructor1.C

raw
1 // PR c++/59281
2 // { dg-do compile { target { c++11 && init_priority } } }
3
4 enum class E : int { prio = 666 };
5 void f (int) __attribute__((constructor(E::prio))); // { dg-error "integer" }