brintos

brintos / llvm-project-archived public Read only

0
0
Text · 867 B · 251d921 Raw
25 lines · cpp
1// RUN: %clang_cc1 -std=c++17 -fms-compatibility-version=19.20 -emit-llvm %s -o - -fms-extensions -fdelayed-template-parsing -triple=x86_64-pc-windows-msvc | FileCheck --check-prefix=AFTER %s2// RUN: %clang_cc1 -std=c++17 -fms-compatibility-version=19.14 -emit-llvm %s -o - -fms-extensions -fdelayed-template-parsing -triple=x86_64-pc-windows-msvc | FileCheck --check-prefix=BEFORE %s3 4template <auto a>5class AutoParmTemplate {6public:7    AutoParmTemplate() {}8};9 10template <auto a>11auto AutoFunc() {12    return a;13}14 15void template_mangling() {16 17  AutoParmTemplate<nullptr> auto_nullptr;18  // AFTER: call {{.*}} @"??0?$AutoParmTemplate@$M$$T0A@@@QEAA@XZ"19  // BEFORE: call {{.*}} @"??0?$AutoParmTemplate@$0A@@@QEAA@XZ"20 21  AutoFunc<nullptr>();22  // AFTER: call {{.*}} @"??$AutoFunc@$M$$T0A@@@YA?A_PXZ"23  // BEFORE: call {{.*}} @"??$AutoFunc@$0A@@@YA?A?<auto>@@XZ"24}25