xref: /freebsd/crypto/krb5/src/tests/misc/test_cxx_k5int.cpp (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1 // Test that the krb5 internal headers are compatible with C++ code.
2 // (Some Windows-specific code is in C++ in this source tree.)
3 
4 #include <stdio.h>
5 #include "k5-int.h"
6 #include "k5-ipc_stream.h"
7 #include "k5-utf8.h"
8 
main(int argc,char * argv[])9 int main (int argc, char *argv[])
10 {
11     krb5_context ctx;
12 
13     if (krb5_init_context(&ctx) != 0) {
14 	printf("krb5_init_context returned an error\n");
15 	return 1;
16     }
17     printf("hello, world\n");
18     krb5_free_context(ctx);
19     return 0;
20 }
21