1 // RUN: %clang_cc1 -fcxx-exceptions -triple=x86_64-windows-msvc -emit-llvm %s -o - | FileCheck %s
12 template <typename
, typename
> struct c
: b
{
13 c(const a
&p1
, const A
&d
) : b(p1
, 0, d
) {}
15 template <typename e
> struct B
: c
<e
, b
> {
35 C
i(B
<bool>(&h
, {}), f());
39 // Inheriting ctor has internal linkage without comdat.
41 // CHECK-LABEL: define internal noundef ptr @"??0?$B@_N@@QEAA@AEBVF@@AEBUA@@@Z"
43 // CHECK-SAME: {{\{$}}
45 // non-inheriting ctro should has linkonce_odr with comdat attribute.
47 // CHECK-LABEL: define linkonce_odr dso_local noundef ptr @"??0?$c@_NUb@@@@QEAA@AEBVF@@AEBUA@@@Z"
49 // CHECK-SAME: {{\{$}}