diff options
author | Anders Carlsson <andersca@mac.com> | 2010-11-04 05:28:09 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-11-04 05:28:09 +0000 |
commit | 2bd6250f8e14750033362664ee298c2cc0e64853 (patch) | |
tree | f0c18bbd85312c6a53d60d4c38d17def6b1c0e88 /test/CodeGenCXX/nullptr.cpp | |
parent | e292368afa63337f5ff64c967857a898d6f868da (diff) |
std::nullptr_t is a fundamental type for RTTI purposes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118238 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 index ab63b432bd..0dca68f8bc 100644 --- a/test/CodeGenCXX/nullptr.cpp +++ b/test/CodeGenCXX/nullptr.cpp @@ -1,5 +1,8 @@ // RUN: %clang_cc1 -std=c++0x -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s +#include <typeinfo> + +// CHECK: @_ZTIDn = external constant i8* int* a = nullptr; void f() { @@ -15,3 +18,7 @@ void g() { // CHECK: call i8* @_Z11get_nullptrv() int (X::*pmf)(int) = get_nullptr(); } + +const std::type_info& f2() { + return typeid(nullptr_t); +}
\ No newline at end of file |