PR17730: Add test that we don't crash on this testcase. (The bug is already fixed.)

llvm-svn: 220787
This commit is contained in:
Richard Smith 2014-10-28 17:00:19 +00:00
parent eb2226e4bd
commit 241ae2cecf
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// 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;
}