From ba37e1eb49c41689bbf0478fb44e66183203dd13 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Thu, 4 Nov 2010 05:28:09 +0000 Subject: std::nullptr_t is a fundamental type for RTTI purposes. llvm-svn: 118238 --- clang/test/CodeGenCXX/nullptr.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/CodeGenCXX/nullptr.cpp') diff --git a/clang/test/CodeGenCXX/nullptr.cpp b/clang/test/CodeGenCXX/nullptr.cpp index ab63b432bdf..0dca68f8bca 100644 --- a/clang/test/CodeGenCXX/nullptr.cpp +++ b/clang/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 + +// 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 -- cgit v1.2.3