Last change
on this file since d30c229 was
fb0f04d,
checked in by Michael Brooks <mlbrooks@…>, 5 days ago
|
Fix exceptions to be warning-free.
|
-
Property mode set to
100644
|
File size:
519 bytes
|
Line | |
---|
1 | exception SkyFalling{ |
---|
2 | int fromHeight; |
---|
3 | }; |
---|
4 | __attribute__(( cfa_linkonce )) vtable( SkyFalling ) SkyFalling_vt; |
---|
5 | void manual() { |
---|
6 | try { |
---|
7 | throwResume (SkyFalling){ & SkyFalling_vt, 42 }; |
---|
8 | } catch ( SkyFalling * ) { |
---|
9 | } |
---|
10 | } |
---|
11 | |
---|
12 | #include <Exception.hfa> |
---|
13 | |
---|
14 | ExceptionDecl( WaterRising, int fromDepth; ); |
---|
15 | void abbreviated() { |
---|
16 | try { |
---|
17 | throwResume ExceptionInst( WaterRising, 42 ); |
---|
18 | } catch ( WaterRising * ) { |
---|
19 | } |
---|
20 | } |
---|
21 | |
---|
22 | int main() { |
---|
23 | manual(); |
---|
24 | abbreviated(); |
---|
25 | printf("done\n"); |
---|
26 | return 0; |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.