Debian Codegraph @

gcc/testsuite/g++.dg/contracts/contracts-err1.C

raw
1 // PR c++/108542
2 // { dg-additional-options -fcontracts }
3 // { dg-do compile { target c++11 } }
4
5 template<typename T>
6 void f (T n) {}
7 void g() [[pre: f]]; // { dg-error "overloaded" }