llvm-for-llvmta/tools/clang/test/CXX/temp/temp.res/temp.local/p7.cpp

12 lines
175 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
template<class T> struct A {
int B;
int f();
};
template<class B> int A<B>::f() {
return B;
}