diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-15 04:39:46 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-15 04:39:46 +0000 |
commit | c1eb14a66fdd955aff3f957a5843295f27952bdd (patch) | |
tree | ab3738d62044635456c762d297cfef49bbce19e1 /test/CodeGenCXX/nullptr.cpp | |
parent | aab7efef16e29797e9a7fe4a8e93ad7f58752991 (diff) |
Codegen support for nullptr from C++0x.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/nullptr.cpp')
-rw-r--r-- | test/CodeGenCXX/nullptr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGenCXX/nullptr.cpp b/test/CodeGenCXX/nullptr.cpp new file mode 100644 index 0000000000..7bc52ad521 --- /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; +} |