cling/test/NullDeref/Store.C

7 lines
214 B
C++
Raw Normal View History

// RUN: cat %s | %cling -Xclang -verify
2013-07-21 16:10:53 +03:00
//This file checks a pointer store operation for null ptr dereference.
2013-07-21 16:10:53 +03:00
int *p;
*p = 6; // expected-warning {{null passed to a callee which requires a non-null argument}}
.q