aboutsummaryrefslogtreecommitdiff
path: root/gprof/t.c
diff options
context:
space:
mode:
Diffstat (limited to 'gprof/t.c')
-rwxr-xr-xgprof/t.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gprof/t.c b/gprof/t.c
new file mode 100755
index 0000000..62272b4
--- /dev/null
+++ b/gprof/t.c
@@ -0,0 +1,12 @@
+void
+foo(int x) {
+ if (x&3)
+ foo (x-1);
+}
+
+main() {
+ int i;
+
+ for (i=0; i< 1024; i++)
+ foo(i);
+}