mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 13:35:42 -04:00

Summary: This was removed here rL366590 by accident. Reviewers: xiaobai, jfb Reviewed By: xiaobai Subscribers: dexonsmith, srhines, krytarowski, jfb, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D65123 llvm-svn: 366766
14 lines
242 B
C
14 lines
242 B
C
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
int recurse(int x) {
|
|
if (x <= 1)
|
|
return 1; // recurse end
|
|
return recurse(x-1) + x; // recurse call
|
|
}
|
|
|
|
int main(int argc, char const *argv[]) {
|
|
recurse(20); // recurse invocation
|
|
return 0;
|
|
}
|