[clang] 5e2c9a0 - Fix test failure on Windows.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 21 20:02:52 PDT 2020


Author: Richard Smith
Date: 2020-10-21T20:02:37-07:00
New Revision: 5e2c9a05b74c022dfb4780358b7f2b11e874993d

URL: https://github.com/llvm/llvm-project/commit/5e2c9a05b74c022dfb4780358b7f2b11e874993d
DIFF: https://github.com/llvm/llvm-project/commit/5e2c9a05b74c022dfb4780358b7f2b11e874993d.diff

LOG: Fix test failure on Windows.

Added: 
    

Modified: 
    clang/test/SemaTemplate/temp_arg_nontype_cxx20.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaTemplate/temp_arg_nontype_cxx20.cpp b/clang/test/SemaTemplate/temp_arg_nontype_cxx20.cpp
index 75428a44eb32..9ad0bad36e2a 100644
--- a/clang/test/SemaTemplate/temp_arg_nontype_cxx20.cpp
+++ b/clang/test/SemaTemplate/temp_arg_nontype_cxx20.cpp
@@ -204,7 +204,7 @@ namespace CTADPartialOrder {
 
 namespace UnnamedBitfield {
   struct A {
-    int : 16;
+    __INT32_TYPE__ : 32;
   };
   // Make sure we don't distinguish between the unnamed bit-field being
   // uninitialized and it being zeroed. Those are not distinct states
@@ -218,5 +218,5 @@ namespace UnnamedBitfield {
   using T = X<A{}>;
   using T = X<(A())>;
   // Once we support bit-casts involving bit-fields, this should be valid too.
-  using T = X<__builtin_bit_cast(A, (unsigned short)0)>; // expected-error {{constant}} expected-note {{not yet supported}}
+  using T = X<__builtin_bit_cast(A, 0)>; // expected-error {{constant}} expected-note {{not yet supported}}
 }


        


More information about the cfe-commits mailing list