]> granicus.if.org Git - clang/commitdiff
Change a lit test to permit vendor specific clang version
authorNathan Lanza <nathan@lanza.io>
Tue, 16 Jul 2019 02:05:52 +0000 (02:05 +0000)
committerNathan Lanza <nathan@lanza.io>
Tue, 16 Jul 2019 02:05:52 +0000 (02:05 +0000)
A test manually checks for the string `__VERSION__ "Clang`. This needs
to permit vendor specific variants.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366166 91177308-0d34-0410-b5e6-96231b3b80d8

test/Preprocessor/init.c

index d2d7efc0ae709bd6fa002965b34a73a2e89a296a..954f02a01434491729ea8111ad6dcdbbaad8c16c 100644 (file)
 // X86_64-CLOUDABI:#define __UINT_LEAST8_MAX__ 255
 // X86_64-CLOUDABI:#define __UINT_LEAST8_TYPE__ unsigned char
 // X86_64-CLOUDABI:#define __USER_LABEL_PREFIX__
-// X86_64-CLOUDABI:#define __VERSION__ "Clang{{.*}}
+// X86_64-CLOUDABI:#define __VERSION__ "{{.*}}Clang{{.*}}
 // X86_64-CLOUDABI:#define __WCHAR_MAX__ 2147483647
 // X86_64-CLOUDABI:#define __WCHAR_TYPE__ int
 // X86_64-CLOUDABI:#define __WCHAR_WIDTH__ 32