blob: f7d24bd3093f506795a0d5280a157ca59b4bd969 [file] [log] [blame]
Reid Kleckner543a16c2013-09-16 21:46:30 +00001// RUN: not %clang_cc1 -triple i686-pc-win32 -fexceptions -fms-extensions -emit-llvm -o - %s 2>&1 | FileCheck %s
2
3// This is a codegen test because we only emit the diagnostic when we start
4// generating code.
5
6int SaveDiv(int numerator, int denominator, int *res) {
7 int myres = 0;
8 __try {
9 myres = numerator / denominator;
10 } __except (1) {
11 return 0;
12 }
13 *res = myres;
14 return 1;
15}
Benjamin Kramer06e0dad2014-01-11 21:22:35 +000016// CHECK-NOT: error:
Reid Kleckner543a16c2013-09-16 21:46:30 +000017// CHECK: error: cannot compile this SEH __try yet
Benjamin Kramer06e0dad2014-01-11 21:22:35 +000018// CHECK-NOT: error: