1 // RUN: %clang_cc1 -emit-llvm-only %s -triple=i386-pc-win32 -mconstructor-aliases -fcxx-exceptions -fexceptions -fno-rtti -verify -DTRY
2 // RUN: %clang_cc1 -emit-llvm-only %s -triple=i386-pc-win32 -mconstructor-aliases -fcxx-exceptions -fexceptions -fno-rtti -verify -DTHROW
3
4 void external();
5
not_emitted()6 inline void not_emitted() {
7 throw int(13); // no error
8 }
9
main()10 int main() {
11 int rv = 0;
12 #ifdef TRY
13 try { // expected-error {{cannot compile this try statement yet}}
14 external();
15 } catch (int) {
16 rv = 1;
17 }
18 #endif
19 #ifdef THROW
20 throw int(42); // expected-error {{cannot compile this throw expression yet}}
21 #endif
22 return rv;
23 }
24