From 611ba3ea3300b71eb95dc4e45f20eee5dddd32e1 Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 17 Jul 2011 15:40:56 +0000 Subject: Vendor import of clang trunk r135360: http://llvm.org/svn/llvm-project/cfe/trunk@135360 --- test/Analysis/nullptr.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/Analysis/nullptr.cpp') diff --git a/test/Analysis/nullptr.cpp b/test/Analysis/nullptr.cpp index b74a5ab..6f78bae 100644 --- a/test/Analysis/nullptr.cpp +++ b/test/Analysis/nullptr.cpp @@ -39,3 +39,11 @@ void foo4(void) { *np = 0; // no-warning } + +int pr10372(void *& x) { + // GNU null is a pointer-sized integer, not a pointer. + x = __null; + // This used to crash. + return __null; +} + -- cgit v1.1