brintos

brintos / llvm-project-archived public Read only

0
0
Text · 636 B · 023ed8d Raw
22 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: msvc10 11// ensure that binary_function always has the same ABI12 13#include <functional>14 15struct S1 : std::less<int>, std::greater<int> {};16 17static_assert(sizeof(S1) == 2, "");18 19struct S2 : std::less<int> { char c; };20 21static_assert(sizeof(S2) == 1, "");22