Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaTemplate/temp_arg_enum_printing.cpp @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -fsyntax-only -ast-print %s | FileCheck %s namespace NamedEnumNS { enum class NamedEnum { Val0, Val1 }; template <NamedEnum E> void foo(); void test() { // CHECK: template<> void foo<NamedEnumNS::NamedEnum::Val0>() NamedEnumNS::foo<NamedEnum::Val0>(); // CHECK: template<> void foo<NamedEnumNS::NamedEnum::Val1>() NamedEnumNS::foo<(NamedEnum)1>(); // CHECK: template<> void foo<(NamedEnumNS::NamedEnum)2>() NamedEnumNS::foo<(NamedEnum)2>(); } } // NamedEnumNS