diff options
Diffstat (limited to 'test/error.cpp')
| -rw-r--r-- | test/error.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/error.cpp b/test/error.cpp new file mode 100644 index 0000000..5f96a5a --- /dev/null +++ b/test/error.cpp @@ -0,0 +1,12 @@ +/** + * Demonstrate that we can compile, link, and run an application + * with libzt and successfully get an error from the socket API. + */ + +#include <cstdlib> +#include <ZeroTierSockets.h> + +int main() +{ + return zts_socket(0,0,0) != -2; // We expect -2 from an uninitialized libzt instance +}
\ No newline at end of file |
