summaryrefslogtreecommitdiff
path: root/tests/Atomic_Op_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Atomic_Op_Test.cpp')
-rw-r--r--tests/Atomic_Op_Test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Atomic_Op_Test.cpp b/tests/Atomic_Op_Test.cpp
index 310c12aa89e..c3c41bbff24 100644
--- a/tests/Atomic_Op_Test.cpp
+++ b/tests/Atomic_Op_Test.cpp
@@ -201,6 +201,14 @@ run_main (int, ACE_TCHAR *[])
return 0;
}
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+template class ACE_Atomic_Op<ACE_Thread_Mutex, int>;
+template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>;
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int>
+#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
#else
int
run_main (int, ACE_TCHAR *[])