[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFrameworkModule()
[llvm-project.git] / clang / test / SemaTemplate / temp_arg_enum_printing.cpp
blob5a486edd2d30df3717c303a6f5217a9c6fad0f7a
1 // RUN: %clang_cc1 -fsyntax-only -ast-print %s | FileCheck %s
3 namespace NamedEnumNS
6 enum class NamedEnum
8 Val0,
9 Val1
12 template <NamedEnum E>
13 void foo();
15 void 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>();
24 } // NamedEnumNS