From ba4167f75c8f7ba8726132eed94af3ae6cd38eee Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 12 Dec 2007 14:45:05 +0000 Subject: Added the new TRACE test. --- src/tests/tracer.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/tests/tracer.cpp (limited to 'src/tests') diff --git a/src/tests/tracer.cpp b/src/tests/tracer.cpp new file mode 100644 index 0000000..52ce0d7 --- /dev/null +++ b/src/tests/tracer.cpp @@ -0,0 +1,28 @@ + +#define BU_TRACE +#include "bu/trace.h" + +void doThing3( int x, const char *bob, void *p ) +{ + TRACE( x, bob, p ); +} + +void doThing2( int x, const char *bob ) +{ + TRACE( x, bob ); +} + +void doThing( int x ) +{ + TRACE( x ); +} + +int main( int argc, char *argv[] ) +{ + doThing( 54 ); + doThing2( 128, "Hello" ); + doThing3( 266, "Goodbye", argv ); + + return 0; +} + -- cgit v1.2.3