2010-04-23 12:16:32 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -verify -o - |FileCheck %s
|
2009-11-07 08:02:45 +08:00
|
|
|
|
|
|
|
class x {
|
2010-04-10 03:03:51 +08:00
|
|
|
public: int operator=(int);
|
2009-11-07 08:02:45 +08:00
|
|
|
};
|
|
|
|
void a() {
|
|
|
|
x a;
|
|
|
|
a = 1u;
|
|
|
|
}
|
2010-04-23 12:16:32 +08:00
|
|
|
|
|
|
|
void f(int i, int j) {
|
|
|
|
// CHECK: load i32
|
|
|
|
// CHECK: load i32
|
|
|
|
// CHECK: add nsw i32
|
|
|
|
// CHECK: store i32
|
|
|
|
// CHECK: store i32 17, i32
|
|
|
|
// CHECK: ret
|
|
|
|
(i += j) = 17;
|
|
|
|
}
|