From 241ae2cecfb7d670824fa4edeecec4c3a507b4aa Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 28 Oct 2014 17:00:19 +0000 Subject: [PATCH] PR17730: Add test that we don't crash on this testcase. (The bug is already fixed.) llvm-svn: 220787 --- clang/test/SemaTemplate/crash.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 clang/test/SemaTemplate/crash.cpp 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; +} -- 2.7.4