brintos

brintos / llvm-project-archived public Read only

0
0
Text · 494 B · bf343af Raw
25 lines · cpp
1// RUN: %clang_cc1 -ast-print %s | FileCheck %s2 3namespace NamedEnumNS4{5  6enum class NamedEnum7{8  Val0,9  Val110};11  12template <NamedEnum E>13void foo();14  15void test() {16  // CHECK: template<> void foo<NamedEnumNS::NamedEnum::Val0>()17  NamedEnumNS::foo<NamedEnum::Val0>();18  // CHECK: template<> void foo<NamedEnumNS::NamedEnum::Val1>()19  NamedEnumNS::foo<(NamedEnum)1>();20  // CHECK: template<> void foo<(NamedEnumNS::NamedEnum)2>()21  NamedEnumNS::foo<(NamedEnum)2>();22}23  24} // NamedEnumNS25