summaryrefslogtreecommitdiff
path: root/test-absolute-path.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-absolute-path.c')
-rw-r--r--test-absolute-path.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-absolute-path.c b/test-absolute-path.c
new file mode 100644
index 0000000000..c959ea20d3
--- /dev/null
+++ b/test-absolute-path.c
@@ -0,0 +1,11 @@
+#include "cache.h"
+
+int main(int argc, char **argv)
+{
+ while (argc > 1) {
+ puts(make_absolute_path(argv[1]));
+ argc--;
+ argv++;
+ }
+ return 0;
+}