☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
contracts
/
contracts-err1.C
☽
☼
gcc/testsuite/g++.dg/contracts/contracts-err1.C
code
plain
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" }