[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / mangle-nullptr-arg.cpp
blobe4ae3538c58e18bb5195c88403f5adf0b7fa1542
1 // RUN: %clang_cc1 -std=c++11 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
3 template<int *ip> struct IP {};
5 // CHECK-LABEL: define {{.*}}void @_Z5test12IPILPi0EE
6 void test1(IP<nullptr>) {}
8 struct X{ };
9 template<int X::*pm> struct PM {};
11 // CHECK-LABEL: define {{.*}}void @_Z5test22PMILM1Xi0EE
12 void test2(PM<nullptr>) { }
14 // CHECK-LABEL: define {{.*}}void @_Z5test316DependentTypePtrIPiLS0_0EE
15 template<typename T, T x> struct DependentTypePtr {};
16 void test3(DependentTypePtr<int*,nullptr>) { }