Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / toolchain / eh_loop_break.cc
1 /*
2  * Copyright 2010 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 #include "native_client/tests/toolchain/eh_helper.h"
8
9 int main() {
10   next_step(1);
11   for (;;) {
12     next_step(2);
13     try {
14       next_step(3);
15       throw(666);
16       abort();
17     } catch(int x) {
18       if (x != 666) abort();
19       next_step(4);
20       break;
21     }
22     abort();
23   }
24
25   next_step(5);
26   return 55;
27 }