-
Notifications
You must be signed in to change notification settings - Fork 258
/
Copy pathpure2-bugfix-for-late-comments.cpp
47 lines (29 loc) · 1.32 KB
/
pure2-bugfix-for-late-comments.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#define CPP2_IMPORT_STD Yes
//=== Cpp2 type declarations ====================================================
#include "cpp2util.h"
#line 1 "pure2-bugfix-for-late-comments.cpp2"
#line 7 "pure2-bugfix-for-late-comments.cpp2"
class crash_m0;
//=== Cpp2 type definitions and function declarations ===========================
#line 1 "pure2-bugfix-for-late-comments.cpp2"
#line 2 "pure2-bugfix-for-late-comments.cpp2"
[[nodiscard]] auto main() -> int;
#line 7 "pure2-bugfix-for-late-comments.cpp2"
class crash_m0 {
public: [[nodiscard]] auto operator-([[maybe_unused]] auto const& unnamed_param_2) const& -> int;
public: crash_m0() = default;
public: crash_m0(crash_m0 const&) = delete; /* No 'that' constructor, suppress copy */
public: auto operator=(crash_m0 const&) -> void = delete;
#line 11 "pure2-bugfix-for-late-comments.cpp2"
};
//=== Cpp2 function definitions =================================================
#line 1 "pure2-bugfix-for-late-comments.cpp2"
#line 2 "pure2-bugfix-for-late-comments.cpp2"
[[nodiscard]] auto main() -> int{
auto x {crash_m0()};
static_cast<void>(cpp2::move(x));
}
#line 8 "pure2-bugfix-for-late-comments.cpp2"
[[nodiscard]] auto crash_m0::operator-([[maybe_unused]] auto const& unnamed_param_2) const& -> int { return 0; }/* Comment starts here
And continues here
*/