repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[gcn] install.texi: Update for new ISA targets and their requirements
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
contracts
/
contracts-post2.C
blob
5255d2b83c3257e6bfeb0e190cdd1c431d6f0705
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
}