Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / ms_mangler_templatearg_opte.cpp
blobb17d97bb04cad1ab92bd90f1df6a8b85ef2ad21c
1 // RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -emit-llvm -std=c++20 -x c++ < %s | FileCheck -check-prefix=WIN64 %s
3 struct A {
4 const int* ptr;
5 };
7 template<A> void tfn() {};
9 // WIN64: ??$tfn@$2UA@@PEBH5CE?ints@@3QBHB06@@@@@YAXXZ
10 constexpr int ints[] = { 1, 2, 7, 8, 9, -17, -10 };
12 // WIN64: ??$tfn@$2UA@@PEBH5E?one_int@@3HB@@@@YAXXZ
13 constexpr int one_int = 7;
15 void template_instance() {
16 tfn<A{ints + sizeof(ints)/sizeof(int)}>();
17 tfn<A{&one_int + 1}>();