* src/threads/lock.cpp (sable_flc_waiting): Slight optimization, avoiding
[cacao.git] / tests / regression / assertion / testassertions.java
1 /* tests/regression/native/testassertions.java - assertion testing\r
2 \r
3    Copyright (C) 2007\r
4    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO\r
5 \r
6    This file is part of CACAO.\r
7 \r
8    This program is free software; you can redistribute it and/or\r
9    modify it under the terms of the GNU General Public License as\r
10    published by the Free Software Foundation; either version 2, or (at\r
11    your option) any later version.\r
12 \r
13    This program is distributed in the hope that it will be useful, but\r
14    WITHOUT ANY WARRANTY; without even the implied warranty of\r
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
16    General Public License for more details.\r
17 \r
18    You should have received a copy of the GNU General Public License\r
19    along with this program; if not, write to the Free Software\r
20    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\r
21    02110-1301, USA.\r
22 \r
23 */\r
24 \r
25 public class testassertions {\r
26     public static void main(String[] args) {\r
27         try {\r
28             assert 1 == 2;\r
29             System.out.println("Assertions disabled!");\r
30         } catch (AssertionError ae) {\r
31             System.out.println("Assertions enabled!");\r
32         }\r
33     }\r
34 }