diff --git a/.gitmodules b/.gitmodules
index 37d059d25c72ac275101031cf0f714ae827296d3..61cd00d6fb13368ef674cddb3050e07380a39113 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -10,3 +10,6 @@
 [submodule "tests/containers"]
 	path = tests/containers
 	url = https://github.com/haskell/containers.git
+[submodule "tests/atomic-counter"]
+	path = tests/atomic-counter
+	url = https://github.com/sergv/atomic-counter.git
diff --git a/ci/config.sh b/ci/config.sh
index fb7ac2965d766f51f4560cec96665f69634fab98..f0faf9f64f4c36282b227acf080a7ef42f74f1a9 100644
--- a/ci/config.sh
+++ b/ci/config.sh
@@ -212,6 +212,7 @@ case "$BUILD_MODE" in
         test_package all "$(pwd)/../tests/text"
         test_package bytestring-tests "$(pwd)/../tests/bytestring"
         test_package all "$(pwd)/../tests/containers/containers-tests"
+        test_package test "$(pwd)/../tests/atomic-counter"
         ;;
     COMPAT)
         test_package system-test "$(pwd)/../tests/ghc-debug/test/"
diff --git a/tests/atomic-counter b/tests/atomic-counter
new file mode 160000
index 0000000000000000000000000000000000000000..2277ef9c82d5da00c51692d2f81111c63be1d2cb
--- /dev/null
+++ b/tests/atomic-counter
@@ -0,0 +1 @@
+Subproject commit 2277ef9c82d5da00c51692d2f81111c63be1d2cb