From b67b7f2b784c7105e88a5e639d9d84736ae2cbc1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 1 Dec 2023 12:38:43 +0900 Subject: uncrustify-trinity: updated based on upstream version 0.78.1 Signed-off-by: Michele Calgaro --- .../tests/input/oc/exceptions.m | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/exceptions.m (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/exceptions.m') diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/exceptions.m b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/exceptions.m new file mode 100644 index 00000000..c8d6f6f2 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/exceptions.m @@ -0,0 +1,23 @@ + +int main( int argc, const char *argv[] ) { + @try { + [NSException raise:NSInternalInconsistency + format:@"An internal inconsistency was raised"]; + } + @catch (NSException *e) { + NSLog(@"Catch"); + } + @finally { + NSLog(@"Finally"); + } + + @throw [NSException exceptionWithName:@"foo" reason:@"bar" userInfo:nil]; + +NSException *exception = [NSException exceptionWithName: @"HotTeaException" + reason: @"The tea is too hot" + userInfo: nil]; + +@throw exception; + + return 0; +} -- cgit v1.2.1