Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaTemplate/member-specialization.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
line wrap: on
line source
// RUN: %clang_cc1 -std=c++17 -verify %s // expected-no-diagnostics template<typename T, typename U> struct X { template<typename V> const V &as() { return V::error; } template<> const U &as<U>() { return u; } U u; }; int f(X<int, int> x) { return x.as<int>(); }