commit | c1eb14a66fdd955aff3f957a5843295f27952bdd | [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 | ab3738d62044635456c762d297cfef49bbce19e1 | |
parent | aab7efef16e29797e9a7fe4a8e93ad7f58752991 [diff] [blame] |
Codegen support for nullptr from C++0x. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81835 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/nullptr.cpp b/test/CodeGenCXX/nullptr.cpp new file mode 100644 index 0000000..7bc52ad --- /dev/null +++ b/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; +}