From 84b7a9af35949c859098ccd853b94f0a8d83fb46 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sun, 23 Jul 2023 15:58:58 -0400 Subject: [PATCH] Update demo program --- test/demo.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/test/demo.cpp b/test/demo.cpp index 1d688ac..c7dcf8e 100644 --- a/test/demo.cpp +++ b/test/demo.cpp @@ -9,42 +9,27 @@ void trace() { cpptrace::print_trace(); } -int x; - void foo(int n) { if(n == 0) { - x = 0; trace(); - x = 0; } else { - x = 0; foo(n - 1); - x = 0; } } template void foo(int x, Args... args) { - x = 0; foo(args...); - x = 0; } void function_two(int, float) { - x = 0; foo(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); - x = 0; } void function_one(int) { - x = 0; function_two(0, 0); - x = 0; } int main() { - x = 0; function_one(0); - x = 0; } -