From: Nathan Lanza Date: Tue, 16 Jul 2019 00:57:50 +0000 (+0000) Subject: Allow for vendor prefixes in a list test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc33320ab1eefc2eeb08017857d7c4bb3ee8cab5;p=clang Allow for vendor prefixes in a list test Summary: Preprocessor/init.c contains a line that explicitly checks for the string __VERSION__ "Clang{{.*}} It's valid to have a toolchain configured to emit a vendor prefix before the word Clang. e.g. __VERSION__ "Vendor Clang{{.*}} Subscribers: fedor.sergeev, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D64772 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366159 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Preprocessor/init.c b/test/Preprocessor/init.c index fce85e05f6..d2d7efc0ae 100644 --- a/test/Preprocessor/init.c +++ b/test/Preprocessor/init.c @@ -8169,7 +8169,7 @@ // SPARC:#define __UINT_LEAST8_MAX__ 255 // SPARC:#define __UINT_LEAST8_TYPE__ unsigned char // SPARC:#define __USER_LABEL_PREFIX__ -// SPARC:#define __VERSION__ "Clang{{.*}} +// SPARC:#define __VERSION__ "{{.*}}Clang{{.*}} // SPARC:#define __WCHAR_MAX__ 2147483647 // SPARC:#define __WCHAR_TYPE__ int // SPARC:#define __WCHAR_WIDTH__ 32