summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50006-exceptions.m
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50006-exceptions.m')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50006-exceptions.m27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50006-exceptions.m b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50006-exceptions.m
new file mode 100644
index 00000000..609d2086
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/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;
+}