Skip to content

Commit

Permalink
Merge pull request #28 from SCOREC/pw-clangFailure
Browse files Browse the repository at this point in the history
added minimum test to show clang failure
  • Loading branch information
cwsmith authored Nov 21, 2023
2 parents 2d35a51 + f823020 commit fc35bab
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/testMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,27 @@ void testParallelScan() {
printf("== END testParallelScan ==\n");
}

void testNset() {

printf("== START testNset ==\n");

{
const int N = 10;

using kok1 = Controller::KokkosController<MemorySpace,ExecutionSpace, int**, int***,int****, int*****>;
kok1 c1({N,N,
N,N,N,
N,N,N,N,
N,N,N,N,N});
assert(c1.size(2,0) == N);
assert(c1.size(2,1) == N);
assert(c1.size(2,2) == N);
assert(c1.size(2,3) == N);
}

printf("== END testNset ==\n");
}

void testSetField() {
printf("== START testSetField ==\n");

Expand Down Expand Up @@ -177,6 +198,7 @@ void testSetField() {

int main(int argc, char *argv[]) {
Kokkos::ScopeGuard scope_guard(argc, argv);
testNset();
testParallelScan();
testSetField();
return 0;
Expand Down

0 comments on commit fc35bab

Please sign in to comment.