xref: /llvm-project/clang/test/CodeGenObjC/try.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// REQUIRES: x86-registered-target
2// RUN: %clang_cc1 %s -fobjc-exceptions -S -o - -triple=i686-apple-darwin9
3// RUN: %clang_cc1 %s -fobjc-exceptions -S -o - -triple=x86_64-apple-darwin9
4
5// Don't crash if the internal proto for __objc_personality_v0 mismatches with
6// an actual one.
7void __objc_personality_v0() { }
8void test1(void) {
9  @try { } @catch (...) { }
10}
11