diff options
Diffstat (limited to 'src/tests/misc/test_cxx_k5int.cpp')
| -rw-r--r-- | src/tests/misc/test_cxx_k5int.cpp | 20 | 
1 files changed, 20 insertions, 0 deletions
| diff --git a/src/tests/misc/test_cxx_k5int.cpp b/src/tests/misc/test_cxx_k5int.cpp new file mode 100644 index 000000000000..bb6005f64095 --- /dev/null +++ b/src/tests/misc/test_cxx_k5int.cpp @@ -0,0 +1,20 @@ +// Test that the krb5 internal headers are compatible with C++ code. +// (Some Windows-specific code is in C++ in this source tree.) + +#include <stdio.h> +#include "k5-int.h" +#include "k5-ipc_stream.h" +#include "k5-utf8.h" + +int main (int argc, char *argv[]) +{ +    krb5_context ctx; + +    if (krb5_init_context(&ctx) != 0) { +	printf("krb5_init_context returned an error\n"); +	return 1; +    } +    printf("hello, world\n"); +    krb5_free_context(ctx); +    return 0; +} | 
