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

Richard Smith richard-llvm at metafoo.co.uk
Tue Oct 28 10:00:19 PDT 2014


Author: rsmith
Date: Tue Oct 28 12:00:19 2014
New Revision: 220787

URL: http://llvm.org/viewvc/llvm-project?rev=220787&view=rev
Log:
PR17730: Add test that we don't crash on this testcase. (The bug is already fixed.)

Added:
    cfe/trunk/test/SemaTemplate/crash.cpp

Added: cfe/trunk/test/SemaTemplate/crash.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/crash.cpp?rev=220787&view=auto
==============================================================================
--- cfe/trunk/test/SemaTemplate/crash.cpp (added)
+++ cfe/trunk/test/SemaTemplate/crash.cpp Tue Oct 28 12:00:19 2014
@@ -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;
+}





More information about the cfe-commits mailing list