[Clang] Fix failing test caused by non-portable diag message
authorCorentin Jabot <corentinjabot@gmail.com>
Thu, 20 Jul 2023 15:53:52 +0000 (17:53 +0200)
committerCorentin Jabot <corentinjabot@gmail.com>
Thu, 20 Jul 2023 15:55:28 +0000 (17:55 +0200)
clang/test/SemaCXX/static-assert-cxx26.cpp

index 9eddc48..4c28fba 100644 (file)
@@ -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}}