xref: /minix3/external/bsd/llvm/dist/clang/test/SemaTemplate/crash.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: not %clang_cc1 -verify %s -std=c++11
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc // PR17730
4*0a6a1f1dSLionel Sambuc template <typename T>
5*0a6a1f1dSLionel Sambuc void S<T>::mem1();
6*0a6a1f1dSLionel Sambuc 
7*0a6a1f1dSLionel Sambuc template <typename T>
mem2()8*0a6a1f1dSLionel Sambuc void S<T>::mem2() {
9*0a6a1f1dSLionel Sambuc     const int I = sizeof(T);
10*0a6a1f1dSLionel Sambuc       (void)I;
11*0a6a1f1dSLionel Sambuc }
12