[clang] Fix implicit integer conversion for opaque enums declared in class templates...
[llvm-project.git] / lldb / test / API / commands / process / launch / print_cwd.cpp
blobb4b073fbcb8decca4950d4f9616b17cac920d90d
1 #include <stdio.h>
3 #ifdef _MSC_VER
4 #define _CRT_NONSTDC_NO_WARNINGS
5 #include <direct.h>
6 #undef getcwd
7 #define getcwd(buffer, length) _getcwd(buffer, length)
8 #else
9 #include <unistd.h>
10 #endif
12 int
13 main (int argc, char **argv)
15 char buffer[1024];
17 fprintf(stdout, "stdout: %s\n", getcwd(buffer, 1024));
18 fprintf(stderr, "stderr: %s\n", getcwd(buffer, 1024));
20 return 0;