Turn on prtcheck for the ptrcheck tests.
This commit is contained in:
parent
9154e98478
commit
52266ba5eb
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify
|
||||
// XFAIL: powerpc64
|
||||
//This file checks a pointer load operation for null prt dereference.
|
||||
int *p = 0;
|
||||
|
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify
|
||||
// XFAIL: powerpc64
|
||||
//This file checks a pointer load operation for null prt dereference.
|
||||
int *p = 0;;
|
||||
|
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify
|
||||
// XFAIL: powerpc64
|
||||
//This file checks that the execution ends after a null prt dereference.
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify
|
||||
// XFAIL: powerpc64
|
||||
//This file checks an if statement for null prt dereference.
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify
|
||||
// XFAIL: powerpc64
|
||||
//This file checks a dereference of an invalid memory address pointer..
|
||||
int *p = (int*)0x1;
|
||||
|
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify
|
||||
// XFAIL: powerpc64
|
||||
//This file checks a pointer load operation for null prt dereference.
|
||||
int *p;
|
||||
|
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify
|
||||
// XFAIL: powerpc64
|
||||
// This test verifies that we get nice warning if a method on null ptr object is
|
||||
// called.
|
||||
|
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify | FileCheck %s
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify | FileCheck %s
|
||||
// XFAIL: powerpc64
|
||||
//This file checks a call instruction. The called function has arguments with nonnull attribute.
|
||||
extern "C" int printf(const char* fmt, ...);
|
||||
|
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify
|
||||
// XFAIL: powerpc64
|
||||
|
||||
// We must be able to handle cases where, there is a custom function that has
|
||||
|
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify
|
||||
// XFAIL: powerpc64
|
||||
|
||||
//This file checks a pointer store operation for null ptr dereference.
|
||||
|
@ -6,7 +6,7 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
// RUN: cat %s | %cling --ptrcheck -Xclang -verify
|
||||
// This test verifies that we do not produce a warning when
|
||||
// - an iterator is derefed;
|
||||
// - a lambda function is derefed.
|
||||
|
Loading…
Reference in New Issue
Block a user