FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cppfront/pure2-bugfix-for-unbraced-function-expression.cpp at main · jnorthrup/cppfront · GitHub
jnorthrup
/
cppfront
Public
forked from
hsutter/cppfront
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
8
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cppfront
/
pure2-bugfix-for-unbraced-function-expression.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
60 lines (41 loc) · 2.1 KB
Breadcrumbs
cppfront
/
pure2-bugfix-for-unbraced-function-expression.cpp
Copy path
File metadata and controls
60 lines (41 loc) · 2.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
48
49
50
51
52
53
54
55
56
57
58
59
//
=== Cpp2 type declarations ====================================================
#
include
"
cpp2util.h
"
#
line
1 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
class
t
;
#
line
2 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
//
=== Cpp2 type definitions and function declarations ===========================
#
line
1 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
class
t
{
#
line
2 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
public:
auto
operator
[](
[[maybe_unused]]
auto
const
& unnamed_param_2)
const
& ->
void
;
public:
t() =
default
;
public:
t(t
const
&) =
delete
;
/*
No 'that' constructor, suppress copy
*/
public:
auto
operator
=(t
const
&) ->
void
=
delete
;
#
line
3 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
};
[[nodiscard]]
auto
main
() -> int;
#
line
14 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
auto
inline
constexpr
x{ cpp2::
i32
{
0
} };
extern
cpp2::
i32
y;
//
=== Cpp2 function definitions =================================================
#
line
1 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
#
line
2 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
auto
t::
operator
[](
[[maybe_unused]]
auto
const
& unnamed_param_2)
const
& ->
void
{}
#
line
5 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
[[nodiscard]]
auto
main
() -> int{
{
auto
const
& x{
t
()};
#
line
6 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
{
CPP2_ASSERT_IN_BOUNDS
(x, []() ->
auto
{
return
0
; }); }
}
{
auto
const
& x{
t
()};
#
line
7 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
{
CPP2_ASSERT_IN_BOUNDS
(x, []() ->
auto
{
return
0
; }); }
}
#
line
9 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
if
(cpp2::cpp2_default.
is_active
() && !(!((cpp2::impl::is<
int
>([]() ->
decltype
(
auto
) {
return
0
; })))) ) { cpp2::cpp2_default.
report_violation
(
"
"
); }
return
cpp2::
i32
{
0
};
}
#
line
15 "regression-tests/pure2-bugfix-for-unbraced-function-expression.cpp2"
cpp2::
i32
y {
0
};
Back
|
FazBrowse Home
|
New Git URL