From 3771b2578e6c6c81564ce5cee6d776660d446ffd Mon Sep 17 00:00:00 2001 From: neingeist Date: Sun, 27 Apr 2014 16:31:57 +0200 Subject: [PATCH] add a simple argv/argc test --- Makefile | 2 +- argv.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 argv.c diff --git a/Makefile b/Makefile index bb54214..0e4ff8a 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ TARGETS=approximate-pi linked-list mandelbrot threads circular-buffer structs \ uiowa-threads-example uiowa-threads-my-example \ mtrace-test av-variance undefined-behaviour \ multibrot-openmp hello-openmp mandelbrot-openmp \ - positional-format-strings unions + positional-format-strings unions argv EXTRAS=mandelbrot.bmp multibrot.png test-inline-assembly.s \ mtrace-test.trace mtrace-test.txt multibrot-openmp.png VERYEXTRAS=cppcheck.txt macros.txt tags diff --git a/argv.c b/argv.c new file mode 100644 index 0000000..8ba6863 --- /dev/null +++ b/argv.c @@ -0,0 +1,10 @@ +#include + +int main(int argc, char* argv[]) { + for (int i = 0; i