diff options
Diffstat (limited to 'clang/test/Coverage/objc-language-features.inc')
-rw-r--r-- | clang/test/Coverage/objc-language-features.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Coverage/objc-language-features.inc b/clang/test/Coverage/objc-language-features.inc index 25988f5e53a..3b092ffbf4c 100644 --- a/clang/test/Coverage/objc-language-features.inc +++ b/clang/test/Coverage/objc-language-features.inc @@ -51,6 +51,9 @@ @implementation A (Cat) @end +@interface B +@end + int f0(id x) { #ifndef IRGENABLE_GNU #ifndef IRGENABLE @@ -62,8 +65,13 @@ int f0(id x) { #ifndef IRGENABLE_GNU @try { @throw x; + } @catch(A *e) { @throw; + + // @catch param doesn't require name. + } @catch(B *) { + } @finally { ; } |