From 7b9d161c017033fa290b7e9b190e237481efebfc Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Mon, 21 Aug 2023 21:24:33 +0200 Subject: [PATCH] Add a test for a scalar 0D data structure --- tests/arrayextents.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/arrayextents.cpp b/tests/arrayextents.cpp index e15713b58a..d8525d99ba 100644 --- a/tests/arrayextents.cpp +++ b/tests/arrayextents.cpp @@ -39,6 +39,14 @@ TEST_CASE("ArrayExtents.dim0") x2 = 0; } +TEST_CASE("ArrayExtents.dim0.int") +{ + auto mapping = llama::mapping::SoA{llama::ArrayExtents{}, int{}}; + auto view = llama::allocView(mapping); + view() = 42; + CHECK(view() == 42); +} + TEMPLATE_LIST_TEST_CASE("ArrayExtents.dim1.dynamic", "", SizeTypes) { const TestType n = 16;