1 // RUN: %clang_cc1 -emit-llvm -triple=x86_64-windows-msvc -fms-compatibility %s -o - | FileCheck %s
2 
3 template <typename> constexpr bool _Is_integer = false;
4 template <> constexpr bool _Is_integer<int> = true;
5 template <> constexpr bool _Is_integer<char> = false;
6 extern "C" const bool *escape = &_Is_integer<int>;
7 
8 // CHECK: @"??$_Is_integer@H@@3_NB" = linkonce_odr dso_local constant i8 1, comdat, align 1
9 //   Should not emit _Is_integer<char>, since it's not referenced.
10 // CHECK-NOT: @"??$_Is_integer@D@@3_NB"
11 // CHECK: @escape = dso_local global i8* @"??$_Is_integer@H@@3_NB", align 8
12