|
| 1 | +/*-------------------------------------------------------------------- |
| 2 | + (C) Copyright 2006-2013 Barcelona Supercomputing Center |
| 3 | + Centro Nacional de Supercomputacion |
| 4 | +
|
| 5 | + This file is part of Mercurium C/C++ source-to-source compiler. |
| 6 | +
|
| 7 | + See AUTHORS file in the top level directory for information |
| 8 | + regarding developers and contributors. |
| 9 | +
|
| 10 | + This library is free software; you can redistribute it and/or |
| 11 | + modify it under the terms of the GNU Lesser General Public |
| 12 | + License as published by the Free Software Foundation; either |
| 13 | + version 3 of the License, or (at your option) any later version. |
| 14 | +
|
| 15 | + Mercurium C/C++ source-to-source compiler is distributed in the hope |
| 16 | + that it will be useful, but WITHOUT ANY WARRANTY; without even the |
| 17 | + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 18 | + PURPOSE. See the GNU Lesser General Public License for more |
| 19 | + details. |
| 20 | +
|
| 21 | + You should have received a copy of the GNU Lesser General Public |
| 22 | + License along with Mercurium C/C++ source-to-source compiler; if |
| 23 | + not, write to the Free Software Foundation, Inc., 675 Mass Ave, |
| 24 | + Cambridge, MA 02139, USA. |
| 25 | +--------------------------------------------------------------------*/ |
| 26 | + |
| 27 | +// RUN: %oss-compile |
| 28 | +// RUN: %oss-O2-compile |
| 29 | + |
| 30 | +// There's more than one cleanup here |
| 31 | + |
| 32 | +int main() { |
| 33 | + #pragma oss task |
| 34 | + { |
| 35 | + for (int i = 0; i < 10; ++i) |
| 36 | + for (int j = 0; j < 10; ++j) |
| 37 | + ; |
| 38 | + } |
| 39 | + #pragma oss task |
| 40 | + { |
| 41 | + for (int i = 0; i < 10; ++i) |
| 42 | + for (int j = 0; j < 10; ++j) |
| 43 | + ; |
| 44 | + } |
| 45 | +} |
0 commit comments