summaryrefslogtreecommitdiffstats
path: root/src/tests/misc/test_cxx_k5int.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/misc/test_cxx_k5int.cpp')
-rw-r--r--src/tests/misc/test_cxx_k5int.cpp19
1 files changed, 19 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 0000000000..602fe94bfc
--- /dev/null
+++ b/src/tests/misc/test_cxx_k5int.cpp
@@ -0,0 +1,19 @@
+// 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");
+ return 0;
+}