1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: msvc
10 
11 // ensure that binary_function always has the same ABI
12 
13 #include <functional>
14 
15 struct S1 : std::less<int>, std::greater<int> {};
16 
17 static_assert(sizeof(S1) == 2, "");
18 
19 struct S2 : std::less<int> { char c; };
20 
21 static_assert(sizeof(S2) == 1, "");
22