Not using exceptions anymore thus these now work on 32bit.
This commit is contained in:
parent
694a0e4c3f
commit
3c7481a11c
@ -1,6 +1,5 @@
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
//This file checks a pointer load operation for null prt dereference.
|
||||
// XFAIL: i686-pc-linux-gnu
|
||||
int *p = 0;
|
||||
int x;
|
||||
x = *p + 2; // expected-warning {{null passed to a callee which requires a non-null argument}}
|
||||
|
@ -1,6 +1,5 @@
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
//This file checks a pointer load operation for null prt dereference.
|
||||
// XFAIL: i686-pc-linux-gnu
|
||||
int *p = 0;;
|
||||
double x;
|
||||
x = double(*p); // expected-warning {{null passed to a callee which requires a non-null argument}}
|
||||
|
@ -1,6 +1,5 @@
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
//This file checks a pointer load operation for null prt dereference.
|
||||
// XFAIL: i686-pc-linux-gnu
|
||||
int *p;
|
||||
int x;
|
||||
x = *p; // expected-warning {{null passed to a callee which requires a non-null argument}}
|
||||
|
@ -2,7 +2,6 @@
|
||||
//This file checks a call instruction. The called function has arguments with nonnull attribute.
|
||||
#include <string.h>
|
||||
// XFAIL: darwin
|
||||
// XFAIL: i686-pc-linux-gnu
|
||||
|
||||
char *p = 0;
|
||||
strcmp("a", p); // expected-warning {{null passed to a callee which requires a non-null argument}}
|
||||
|
@ -5,7 +5,6 @@
|
||||
// attribute to a say library function.
|
||||
|
||||
// Qualified functions.
|
||||
// XFAIL: i686-pc-linux-gnu
|
||||
extern "C" int printf(const char* fmt, ...);
|
||||
namespace custom_namespace {
|
||||
void standaloneFunc(void* p, int q, float* s) __attribute__((nonnull(1,3))) { // expected-warning {{GCC does not allow nonnull attribute in this position on a function definition}}
|
||||
|
@ -1,7 +1,6 @@
|
||||
// RUN: cat %s | %cling -Xclang -verify
|
||||
|
||||
//This file checks a pointer store operation for null ptr dereference.
|
||||
// XFAIL: i686-pc-linux-gnu
|
||||
int *p;
|
||||
*p = 6; // expected-warning {{null passed to a callee which requires a non-null argument}}
|
||||
.q
|
||||
|
Loading…
x
Reference in New Issue
Block a user