From: Richard Smith Date: Tue, 28 Oct 2014 17:00:19 +0000 (+0000) Subject: PR17730: Add test that we don't crash on this testcase. (The bug is already fixed.) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=241ae2cecfb7d670824fa4edeecec4c3a507b4aa;p=platform%2Fupstream%2Fllvm.git PR17730: Add test that we don't crash on this testcase. (The bug is already fixed.) llvm-svn: 220787 --- diff --git a/clang/test/SemaTemplate/crash.cpp b/clang/test/SemaTemplate/crash.cpp new file mode 100644 index 0000000..428e95c --- /dev/null +++ b/clang/test/SemaTemplate/crash.cpp @@ -0,0 +1,11 @@ +// RUN: not %clang_cc1 -verify %s -std=c++11 + +// PR17730 +template +void S::mem1(); + +template +void S::mem2() { + const int I = sizeof(T); + (void)I; +}