repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix the clang-wpa example.
[clang.git]
/
test
/
CodeGenCXX
/
assign-operator.cpp
blob
c4b64e6e51addf1154436bc1977cf1c2feb579f1
1
// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -verify -o - |FileCheck %s
2
3
class
x
{
4
public
:
int
operator
=(
int
);
5
};
6
void
a
() {
7
x a
;
8
a
=
1u
;
9
}
10
11
void
f
(
int
i
,
int
j
) {
12
// CHECK: load i32
13
// CHECK: load i32
14
// CHECK: add nsw i32
15
// CHECK: store i32
16
// CHECK: store i32 17, i32
17
// CHECK: ret
18
(
i
+=
j
) =
17
;
19
}