Home | History | Annotate | Download | only in tests
      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 
      5 namespace blink {
      6 
      7 struct Op {
      8   bool operator==(const Op&) { return true; }
      9 };
     10 
     11 struct Op2 {};
     12 
     13 inline bool operator==(const Op2&, const Op2) {
     14   return true;
     15 }
     16 
     17 }  // namespace
     18 
     19 void G() {
     20   blink::Op a, b;
     21   bool c = a == b;
     22 
     23   blink::Op2 a2, b2;
     24   bool c2 = a2 == b2;
     25 }
     26