forked from OSchip/llvm-project
[Sema] Fix pointer-to-int-cast for MSVC build bot
Revision9658d895c8
breaks the clang-x64-windows-msvc build bot [1]. This should fix the unit test using the same method as used in9658d895c8
. Note I don't have access to a Windows system so the patch is based on the errors generated by the bot. [1] http://lab.llvm.org:8011/builders/clang-x64-windows-msvc/builds/14358 Differential Revision: https://reviews.llvm.org/D74694
This commit is contained in:
parent
8424789eec
commit
af20211944
|
@ -1,11 +1,11 @@
|
|||
// RUN: %clang_analyze_cc1 -Wno-format-security -verify %s \
|
||||
// RUN: %clang_analyze_cc1 -Wno-format-security -Wno-pointer-to-int-cast -verify %s \
|
||||
// RUN: -analyzer-checker=alpha.security.taint \
|
||||
// RUN: -analyzer-checker=core \
|
||||
// RUN: -analyzer-checker=alpha.security.ArrayBoundV2 \
|
||||
// RUN: -analyzer-config \
|
||||
// RUN: alpha.security.taint.TaintPropagation:Config=%S/Inputs/taint-generic-config.yaml
|
||||
|
||||
// RUN: %clang_analyze_cc1 -Wno-format-security -verify %s \
|
||||
// RUN: %clang_analyze_cc1 -Wno-format-security -Wno-pointer-to-int-cast -verify %s \
|
||||
// RUN: -DFILE_IS_STRUCT \
|
||||
// RUN: -analyzer-checker=alpha.security.taint \
|
||||
// RUN: -analyzer-checker=core \
|
||||
|
@ -13,7 +13,7 @@
|
|||
// RUN: -analyzer-config \
|
||||
// RUN: alpha.security.taint.TaintPropagation:Config=%S/Inputs/taint-generic-config.yaml
|
||||
|
||||
// RUN: not %clang_analyze_cc1 -verify %s \
|
||||
// RUN: not %clang_analyze_cc1 -Wno-pointer-to-int-cast -verify %s \
|
||||
// RUN: -analyzer-checker=alpha.security.taint \
|
||||
// RUN: -analyzer-config \
|
||||
// RUN: alpha.security.taint.TaintPropagation:Config=justguessit \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic -Wsign-conversion %s
|
||||
// RUN: %clang_cc1 -fsyntax-only -Wno-pointer-to-int-cast -verify -pedantic -Wsign-conversion %s
|
||||
void foo() {
|
||||
*(0 ? (double *)0 : (void *)0) = 0;
|
||||
// FIXME: GCC doesn't consider the following two statements to be errors.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -fsyntax-only -Wno-pointer-to-int-cast -verify %s
|
||||
// expected-no-diagnostics
|
||||
typedef long unsigned int __darwin_size_t;
|
||||
typedef long __darwin_ssize_t;
|
||||
|
|
Loading…
Reference in New Issue