commit | 04c3bf4fabb46109394df0781bc4d0046afe034d | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Sep 15 04:39:46 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Sep 15 04:39:46 2009 +0000 |
tree | ce3447278191c13a2382b4b04c20be0118c54428 | |
parent | 2b979ef1282f558a9c12413f9560533ba78aed5e [diff] [blame] |
Codegen support for nullptr from C++0x. llvm-svn: 81835
diff --git a/clang/test/CodeGenCXX/nullptr.cpp b/clang/test/CodeGenCXX/nullptr.cpp new file mode 100644 index 0000000..7bc52ad --- /dev/null +++ b/clang/test/CodeGenCXX/nullptr.cpp
@@ -0,0 +1,7 @@ +// RUN: clang-cc -std=c++0x %s -emit-llvm -o %t + +int* a = nullptr; + +void f() { + int* a = nullptr; +}