eq.pass.cpp revision c52f43e72dfcea03037729649da84c23b3beb04a
1//===----------------------------------------------------------------------===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// <memory>
11
12// allocator:
13
14// template <class T1, class T2>
15//   bool
16//   operator==(const allocator<T1>&, const allocator<T2>&) throw();
17//
18// template <class T1, class T2>
19//   bool
20//   operator!=(const allocator<T1>&, const allocator<T2>&) throw();
21
22#include <memory>
23#include <cassert>
24
25int main()
26{
27    std::allocator<int> a1;
28    std::allocator<int> a2;
29    assert(a1 == a2);
30    assert(!(a1 != a2));
31}
32