/*
 * Copyright (c) 2018-2025, High Performance Computing Architecture and System
 * research laboratory at University of North Carolina at Charlotte (HPCAS@UNCC)
 * and Lawrence Livermore National Security, LLC.
 *
 * SPDX-License-Identifier: (BSD-3-Clause)
 */

//For testing purpose, there are several extra empty lines.
//The final version should only contain necessary information.
//This is not a C/C++ code, so there's no required writing style.
//Only two kinds of special lines will be recognized.
//One is starting with "omp", which is the input.
//The other one is starting with "PASS: ", which is the result for validation.

!$omp single private(a,b,c)
PASS: !$omp single private(a, b, c)

!$omp single firstprivate(a,b,c)
PASS: !$omp single firstprivate(a, b, c)

!$omp single allocate(a,b,c)
PASS: !$omp single allocate (a, b, c)

!$omp single allocate(omp_allocator_handle_t:a,b,c)
PASS: !$omp single allocate (omp_allocator_handle_t: a, b, c)

!$omp single allocate(omp_default_mem_alloc:a,b,c)
PASS: !$omp single allocate (omp_default_mem_alloc: a, b, c)

!$omp end single
PASS: !$omp end single

!$omp end single nowait 
PASS: !$omp end single nowait

!$omp end single copyprivate(to,b,c) 
PASS: !$omp end single copyprivate(to, b, c)

!$omp end single copyprivate(single,b,c) nowait
PASS: !$omp end single copyprivate(single, b, c) nowait

// invalid test without paired validation.
EXPECT: invalid

!$omp single lastprivate(userde:a,b,c)

!$omp single nowait(dsfasf)

!$omp single copyprivate(conditional:a,b,c)

!$omp single nowait

!$omp single nowait

!$omp single copyprivate(a,b,c)

!$omp end single allocate(a,b,c)



