summaryrefslogtreecommitdiffstats
path: root/c++/test/trefer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/test/trefer.cpp')
-rw-r--r--c++/test/trefer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/c++/test/trefer.cpp b/c++/test/trefer.cpp
index 155f122..edcd968 100644
--- a/c++/test/trefer.cpp
+++ b/c++/test/trefer.cpp
@@ -277,8 +277,10 @@ test_reference_obj(void)
** test_reference(): Main reference testing routine.
**
****************************************************************/
-void
-test_reference(void)
+#ifdef __cplusplus
+extern "C"
+#endif
+void test_reference(void)
{
// Output message about test being performed
MESSAGE(5, ("Testing References\n"));