Fix the clang-wpa example.
[clang.git] / test / CodeGenCXX / assign-operator.cpp
blobc4b64e6e51addf1154436bc1977cf1c2feb579f1
1 // RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -emit-llvm -verify -o - |FileCheck %s
3 class x {
4 public: int operator=(int);
5 };
6 void a() {
7 x a;
8 a = 1u;
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;