1// RUN: %clang_cc1 -std=c++11 -triple x86_64-apple-darwin10 -I%S -emit-llvm -o - %s | FileCheck %s 2 3#include <typeinfo> 4 5// CHECK: @_ZTIDn = external constant i8* 6int* a = nullptr; 7 8void f() { 9 int* a = nullptr; 10} 11 12typedef decltype(nullptr) nullptr_t; 13 14nullptr_t get_nullptr(); 15 16struct X { }; 17void g() { 18 // CHECK: call i8* @_Z11get_nullptrv() 19 int (X::*pmf)(int) = get_nullptr(); 20} 21 22const std::type_info& f2() { 23 return typeid(nullptr_t); 24} 25