! * This file is part of the Score-P software (http://www.score-p.org)
! *
! * Copyright (c) 2009-2011,
! *    RWTH Aachen University, Germany
! *    Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany
! *    Technische Universitaet Dresden, Germany
! *    University of Oregon, Eugene, USA
! *    Forschungszentrum Juelich GmbH, Germany
! *    German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany
! *    Technische Universitaet Muenchen, Germany
! *
! * See the COPYING file in the package base directory for details.
! *
! * Testfile for automated testing of OPARI2
! *
! * @authors Bernd Mohr, Peter Philippen
! *
! * @brief Tests user instrumentation directives and selective instrumentation.

      program test7
C$POMP INST INIT

*$POMP INST OFF

!$POMP INST BEGIN(foo)

!$OMP PARALLEL
      i = 1
!$OMP end PARALLEL

CPOMP$ INST END(foo)
      
*POMP$ INST ON

!POMP$ NOINSTRUMENT
!$OMP PARALLEL
      i = 2
!$OMP END PARALLEL
!$POMP INSTRUMENT
      
!$OMP PARALLEL
      i = 3
!$OMP end PARALLEL

!$POMP INST FINALIZE

      end program test7
