From: Corentin Jabot Date: Thu, 20 Jul 2023 15:53:52 +0000 (+0200) Subject: [Clang] Fix failing test caused by non-portable diag message X-Git-Tag: upstream/17.0.6~944 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9265f7c40a0aedb79ba1c8c4728d109c47946fbe;p=platform%2Fupstream%2Fllvm.git [Clang] Fix failing test caused by non-portable diag message --- diff --git a/clang/test/SemaCXX/static-assert-cxx26.cpp b/clang/test/SemaCXX/static-assert-cxx26.cpp index 9eddc48..4c28fba 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}}