summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/bprob/g++-bprob-2.C
blob: 23577d47e0ada5291675f3d9465e114433b7b209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace {

int calc(int j)
{
  if (j==0) return 0;
  return calc(j-1)*j % 17;
}

}

int main(void)
{
  return calc(25);
}