xref: /freebsd/crypto/krb5/src/tests/misc/test_cxx_krb5.cpp (revision b670c9bafc0e31c7609969bf374b2e80bdc00211)
1 // Test that the krb5.h header is compatible with C++ application code.
2 
3 #include <stdio.h>
4 #include "krb5.h"
5 #include "krb5/locate_plugin.h"
6 #include "profile.h"
7 
8 int main (int argc, char *argv[])
9 {
10     krb5_context ctx;
11 
12     if (krb5_init_context(&ctx) != 0) {
13 	printf("krb5_init_context returned an error\n");
14 	return 1;
15     }
16     printf("hello, world\n");
17     krb5_free_context(ctx);
18     return 0;
19 }
20