commit | 774f9c7765d2c33aa662e1c9691357dc8b4e4006 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sun Dec 21 22:39:40 2008 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sun Dec 21 22:39:40 2008 +0000 |
tree | 4a989498d0146c8d241641cf6633bb220a5b9eb9 | |
parent | 6e67d9b883bea0ae19b94e7fd43719fde984782f [diff] [blame] |
Add codegen support for __null git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61314 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/__null.cpp b/test/CodeGenCXX/__null.cpp new file mode 100644 index 0000000..29416ce --- /dev/null +++ b/test/CodeGenCXX/__null.cpp
@@ -0,0 +1,9 @@ +// RUN: clang %s -emit-llvm -o %t + +int* a = __null; +int b = __null; + +void f() { + int* c = __null; + int d = __null; +}