☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
contracts
/
contracts-post2.C
☽
☼
gcc/testsuite/g++.dg/contracts/contracts-post2.C
code
plain
raw
1
// { dg-do run }
2
// { dg-options "-std=c++2a -fcontracts" }
3
// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
4
5
int f1(int n)
6
[[post r: r == n]]
7
{
8
return n;
9
}
10
11
int main()
12
{
13
f1(0);
14
}