1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
24 A() : state_(++next_) {}
25 int get() const {return state_;}
27 friend bool operator==(const A& x, int y)
28 {return x.state_ == y;}
30 A& operator=(int i) {state_ = i; return *this;}
37 std::unique_ptr<A[]> p(new A[3]);