r318314 - Try to fix test/SemaCXX/deleted-operator.cpp after r318309

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 15 09:47:58 PST 2017


Author: hans
Date: Wed Nov 15 09:47:58 2017
New Revision: 318314

URL: http://llvm.org/viewvc/llvm-project?rev=318314&view=rev
Log:
Try to fix test/SemaCXX/deleted-operator.cpp after r318309

The number of 'built-in candidate' notes now varies since __float128 may
or may not be a candidate depending on the target.

Modified:
    cfe/trunk/test/SemaCXX/deleted-operator.cpp

Modified: cfe/trunk/test/SemaCXX/deleted-operator.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/deleted-operator.cpp?rev=318314&r1=318313&r2=318314&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/deleted-operator.cpp (original)
+++ cfe/trunk/test/SemaCXX/deleted-operator.cpp Wed Nov 15 09:47:58 2017
@@ -8,8 +8,8 @@ struct PR10757 {
 int PR10757f() {
   PR10757 a1;
   // FIXME: We get a ridiculous number of "built-in candidate" notes here...
-  if(~a1) {} // expected-error {{overload resolution selected deleted operator}} expected-note 8 {{built-in candidate}}
-  if(a1==a1) {} // expected-error {{overload resolution selected deleted operator}} expected-note 144 {{built-in candidate}}
+  if(~a1) {} // expected-error {{overload resolution selected deleted operator}} expected-note 6-8 {{built-in candidate}}
+  if(a1==a1) {} // expected-error {{overload resolution selected deleted operator}} expected-note 1-144 {{built-in candidate}}
 }
 
 struct DelOpDel {




More information about the cfe-commits mailing list