Author: Saar Raz
Date: 2020-01-09T16:13:46+02:00
New Revision: 84ce46269cfda8800346706251ac3587b2d1c9f5

URL: 
https://github.com/llvm/llvm-project/commit/84ce46269cfda8800346706251ac3587b2d1c9f5
DIFF: 
https://github.com/llvm/llvm-project/commit/84ce46269cfda8800346706251ac3587b2d1c9f5.diff

LOG: [Concepts] Fix failing test on Windows

Fix test failed by D43357 on Windows.

Added: 
    

Modified: 
    clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp 
b/clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp
index dba2ef204e1d..36c68071448c 100644
--- a/clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp
+++ b/clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp
@@ -79,11 +79,11 @@ namespace non_template
     return 0.0;
   }
 
-  void bar() requires (sizeof(long) >= 8) { }
+  void bar() requires (sizeof(char[8]) >= 8) { }
   // expected-note@-1 {{candidate function}}
   // expected-note@-2 {{similar constraint expressions not considered 
equivalent}}
 
-  void bar() requires (sizeof(long) >= 8 && sizeof(int) <= 30) { }
+  void bar() requires (sizeof(char[8]) >= 8 && sizeof(int) <= 30) { }
   // expected-note@-1 {{candidate function}}
   // expected-note@-2 {{similar constraint expression here}}
 
@@ -111,4 +111,3 @@ namespace non_template
   static_assert(goo(1) == 1);
   static_assert(doo(2) == 1); // expected-error {{call to 'doo' is ambiguous}}
 }
-


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to