1// Copyright 2016 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5namespace blink { 6 7struct Op { 8 bool operator==(const Op&) { return true; } 9}; 10 11struct Op2 {}; 12 13inline bool operator==(const Op2&, const Op2) { 14 return true; 15} 16 17} // namespace 18 19void G() { 20 blink::Op a, b; 21 bool c = a == b; 22 23 blink::Op2 a2, b2; 24 bool c2 = a2 == b2; 25} 26