File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,16 @@ struct C {
19
19
20
20
//-------------------------------------------------------
21
21
// 0x: Test one level of out and immediate throw
22
- f00: () = { c:C="f00"; x: X; f01(out x); }
23
- f01: (out x: X) = { c:C="f01"; x=(); throw_1(); }
22
+ f00: () throws = { c:C="f00"; x: X; f01(out x); }
23
+ f01: (out x: X) throws = { c:C="f01"; x=(); throw_1(); }
24
24
25
25
//-------------------------------------------------------
26
26
// 1x: Test multiple levels of out and intermediate throw
27
- f10: () = { c:C="f10"; x: X; f11(out x); }
28
- f11: (out x: X) = { c:C="f11"; f12(out x); }
29
- f12: (out x: X) = { c:C="f12"; f13(out x); throw_1(); }
30
- f13: (out x: X) = { c:C="f13"; f14(out x); }
31
- f14: (out x: X) = { c:C="f14"; x=(); }
27
+ f10: () throws = { c:C="f10"; x: X; f11(out x); }
28
+ f11: (out x: X) throws = { c:C="f11"; f12(out x); }
29
+ f12: (out x: X) throws = { c:C="f12"; f13(out x); throw_1(); }
30
+ f13: (out x: X) throws = { c:C="f13"; f14(out x); }
31
+ f14: (out x: X) throws = { c:C="f14"; x=(); }
32
32
33
33
int main() {
34
34
C c("main");
Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ int main() {
44
44
45
45
// -------------------------------------------------------
46
46
// 0x: Test one level of out and immediate throw
47
- auto f00 () -> void{ C c { " f00" }; cpp2::deferred_init<X> x; f01 (&x);}
47
+ auto f00 () -> void { C c { " f00" }; cpp2::deferred_init<X> x; f01 (&x);}
48
48
auto f01 (cpp2::out<X> x) -> void{C c { " f01" }; x.construct ();throw_1 ();}
49
49
50
50
// -------------------------------------------------------
51
51
// 1x: Test multiple levels of out and intermediate throw
52
- auto f10 () -> void{ C c { " f10" }; cpp2::deferred_init<X> x; f11 (&x);}
52
+ auto f10 () -> void { C c { " f10" }; cpp2::deferred_init<X> x; f11 (&x);}
53
53
auto f11 (cpp2::out<X> x) -> void{C c { " f11" }; f12 (&x);}
54
54
auto f12 (cpp2::out<X> x) -> void{C c { " f12" }; f13 (&x);throw_1 ();}
55
55
auto f13 (cpp2::out<X> x) -> void{C c { " f13" }; f14 (&x);}
You can’t perform that action at this time.
0 commit comments