Sign in
llvm
/
llvm-project
/
lldb
/
refs/heads/main
/
.
/
test
/
API
/
lang
/
cpp
/
expression-context-qualifiers
/
fixit
/
main.cpp
blob: 1dab96e2986da42aa3d9ad276498a210e4bb84b7 [
file
] [
log
] [
blame
] [
edit
]
#include
<cassert>
#include
<cstdio>
struct
Bar
{
void
method
()
{}
};
struct
Foo
{
int
const_method
()
const
{
std
::
puts
(
"Break here"
);
return
120
;
}
Bar
m_bar
;
};
int
main
()
{
Foo
{}.
m_bar
.
method
();
return
Foo
{}.
const_method
();
}