[clang] 9265f7c - [Clang] Fix failing test caused by non-portable diag message

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 20 08:55:46 PDT 2023


Author: Corentin Jabot
Date: 2023-07-20T17:55:28+02:00
New Revision: 9265f7c40a0aedb79ba1c8c4728d109c47946fbe

URL: https://github.com/llvm/llvm-project/commit/9265f7c40a0aedb79ba1c8c4728d109c47946fbe
DIFF: https://github.com/llvm/llvm-project/commit/9265f7c40a0aedb79ba1c8c4728d109c47946fbe.diff

LOG: [Clang] Fix failing test caused by non-portable diag message

Added: 
    

Modified: 
    clang/test/SemaCXX/static-assert-cxx26.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaCXX/static-assert-cxx26.cpp b/clang/test/SemaCXX/static-assert-cxx26.cpp
index 9eddc4830e080e..4c28fba1ca5fc3 100644
--- a/clang/test/SemaCXX/static-assert-cxx26.cpp
+++ b/clang/test/SemaCXX/static-assert-cxx26.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++2c -fsyntax-only %s -verify
+// RUN: %clang_cc1 -std=c++2c -triple=x86_64-linux -fsyntax-only %s -verify
 
 static_assert(true, "");
 static_assert(true, 0); // expected-error {{the message in a static assertion must be a string literal or an object with 'data()' and 'size()' member functions}}


        


More information about the cfe-commits mailing list