repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
conditional-expr-lvalue.cpp
blob
96aa8b07a664c933bfe72f699546d173b4e1a79a
1
// RUN: %clang_cc1 -emit-llvm-only %s
2
void
f
(
bool
flag
) {
3
int
a
=
1
;
4
int
b
=
2
;
5
6
(
flag
?
a
:
b
) =
3
;
7
}
8
9
// PR10756
10
namespace
test0
{
11
struct
A
{
12
A
(
const
A
&);
13
A
&
operator
=(
const
A
&);
14
A
sub
()
const
;
15
void
foo
()
const
;
16
};
17
void
foo
(
bool
cond
,
const
A
&
a
) {
18
(
cond
?
a
:
a
.
sub
()).
foo
();
19
}
20
}