brintos

brintos / llvm-project-archived public Read only

0
0
Text · 515 B · e4ae353 Raw
17 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s2 3template<int *ip> struct IP {};4 5// CHECK-LABEL: define {{.*}}void @_Z5test12IPILPi0EE6void test1(IP<nullptr>) {}7 8struct X{ };9template<int X::*pm> struct PM {};10 11// CHECK-LABEL: define {{.*}}void @_Z5test22PMILM1Xi0EE12void test2(PM<nullptr>) { }13 14// CHECK-LABEL: define {{.*}}void @_Z5test316DependentTypePtrIPiLS0_0EE15template<typename T, T x> struct DependentTypePtr {};16void test3(DependentTypePtr<int*,nullptr>) { }17