Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/overload/operator5.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
6 typedef struct ImplicitConversionFromWTFStringToBoolDisallowedB* | 6 typedef struct ImplicitConversionFromWTFStringToBoolDisallowedB* |
7 (String::*UnspecifiedBoolTypeB); | 7 (String::*UnspecifiedBoolTypeB); |
8 operator UnspecifiedBoolTypeA() const; | 8 operator UnspecifiedBoolTypeA() const; |
9 operator UnspecifiedBoolTypeB() const; | 9 operator UnspecifiedBoolTypeB() const; |
10 }; | 10 }; |
11 inline bool equalIgnoringCase(const String& a, const String& b) { } | 11 inline bool equalIgnoringCase(const String& a, const String& b) { return true; } |
12 inline bool equalPossiblyIgnoringCase(const String& a, | 12 inline bool equalPossiblyIgnoringCase(const String& a, |
13 const String& b, | 13 const String& b, |
14 bool ignoreCase) { | 14 bool ignoreCase) { |
15 return ignoreCase ? equalIgnoringCase(a, b) : (a == b); } // { dg-error "ambiguous" } | 15 return ignoreCase ? equalIgnoringCase(a, b) : (a == b); } // { dg-error "ambiguous" } |
16 // { dg-message "note" "note" { target *-*-* } .-1 } | 16 // { dg-message "note" "note" { target *-*-* } .-1 } |