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/expected/oc/50006-exceptions.m | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50006-exceptions.m (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50006-exceptions.m') diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50006-exceptions.m b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50006-exceptions.m new file mode 100644 index 00000000..609d2086 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50006-exceptions.m @@ -0,0 +1,27 @@ + +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