Files
llvm-project/clang/test/CodeGenCXX/mangle-nullptr-arg.cpp
Douglas Gregor 31f55dced5 Implement support for null non-type template arguments for non-type
template parameters of pointer, pointer-to-member, or nullptr_t
type in C++11. Fixes PR9700 / <rdar://problem/11193097>.

llvm-svn: 154219
2012-04-06 22:40:38 +00:00

14 lines
290 B
C++

// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s
template<int *ip> struct IP {};
// CHECK: define void @_Z5test12IPILPi0EE
void test1(IP<nullptr>) {}
struct X{ };
template<int X::*pm> struct PM {};
// CHECK: define void @_Z5test22PMILM1Xi0EE
void test2(PM<nullptr>) { }