aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/crash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/crash.cpp')
-rw-r--r--test/SemaTemplate/crash.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaTemplate/crash.cpp b/test/SemaTemplate/crash.cpp
new file mode 100644
index 000000000000..428e95ccf96e
--- /dev/null
+++ b/test/SemaTemplate/crash.cpp
@@ -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;
+}