diff options
author | Devang Patel <dpatel@apple.com> | 2011-09-14 23:14:14 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-09-14 23:14:14 +0000 |
commit | f60dca355d3e754b7a51726c7455d1e7583a65ba (patch) | |
tree | cc15e61677894cc5f980436e952f636b1a0e7dcd /test/CodeGenCXX/debug-info-nullptr.cpp | |
parent | de8a9050d79d66325a18168a0994fed125a7790d (diff) |
Emit debug info for c++0x nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-nullptr.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-nullptr.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-nullptr.cpp b/test/CodeGenCXX/debug-info-nullptr.cpp new file mode 100644 index 0000000000..3c6f31615d --- /dev/null +++ b/test/CodeGenCXX/debug-info-nullptr.cpp @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -S -std=c++0x -masm-verbose -g %s -o -| FileCheck %s + +//CHECK: DW_TAG_unspecified_type +//CHECK-NEXT: "nullptr_t" + +void foo() { + decltype(nullptr) t = 0; + } |