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* 6 int* a = nullptr; 7 f()8void f() { 9 int* a = nullptr; 10 } 11 12 typedef decltype(nullptr) nullptr_t; 13 14 nullptr_t get_nullptr(); 15 16 struct X { }; g()17void g() { 18 // CHECK: call i8* @_Z11get_nullptrv() 19 int (X::*pmf)(int) = get_nullptr(); 20 } 21 f2()22const std::type_info& f2() { 23 return typeid(nullptr_t); 24 } 25