blob: ab63b432bdfa65ee648f35bf973dd3dbfaa78fc6 [file] [log] [blame]
Douglas Gregor4ce46c22010-03-07 23:24:59 +00001// RUN: %clang_cc1 -std=c++0x -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
Anders Carlssonc1eb14a2009-09-15 04:39:46 +00002
3int* a = nullptr;
4
5void f() {
6 int* a = nullptr;
7}
Douglas Gregor4ce46c22010-03-07 23:24:59 +00008
9typedef decltype(nullptr) nullptr_t;
10
11nullptr_t get_nullptr();
12
13struct X { };
14void g() {
15 // CHECK: call i8* @_Z11get_nullptrv()
16 int (X::*pmf)(int) = get_nullptr();
17}