summaryrefslogtreecommitdiff
path: root/tests/P_cxx/cxx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/P_cxx/cxx.cpp')
-rw-r--r--tests/P_cxx/cxx.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/P_cxx/cxx.cpp b/tests/P_cxx/cxx.cpp
new file mode 100644
index 0000000..197e91b
--- /dev/null
+++ b/tests/P_cxx/cxx.cpp
@@ -0,0 +1,21 @@
+#include "cxx.h"
+
+void foo() {}
+void foo(int a) {}
+int bar;
+
+namespace {
+ void foo() {}
+ void foo(double a) {}
+ int bar;
+}
+
+namespace kerker {
+ void foo() {}
+ void foo(char* a) {}
+ int bar;
+}
+
+extern "C" void c_interface() {
+ kerker::foo();
+}