llvm-for-llvmta/tools/clang/test/SemaTemplate/crash.cpp

12 lines
187 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: not %clang_cc1 -verify %s -std=c++11
// PR17730
template <typename T>
void S<T>::mem1();
template <typename T>
void S<T>::mem2() {
const int I = sizeof(T);
(void)I;
}