summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/crash.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-10-28 17:00:19 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-10-28 17:00:19 +0000
commit241ae2cecfb7d670824fa4edeecec4c3a507b4aa (patch)
treeafbbfd2a27cdeb3426c5c2fa6db1b2ba1188d634 /clang/test/SemaTemplate/crash.cpp
parenteb2226e4bd7993cd381f0a40574e8f1f1eefa485 (diff)
downloadbcm5719-llvm-241ae2cecfb7d670824fa4edeecec4c3a507b4aa.tar.gz
bcm5719-llvm-241ae2cecfb7d670824fa4edeecec4c3a507b4aa.zip
PR17730: Add test that we don't crash on this testcase. (The bug is already fixed.)
llvm-svn: 220787
Diffstat (limited to 'clang/test/SemaTemplate/crash.cpp')
-rw-r--r--clang/test/SemaTemplate/crash.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/crash.cpp b/clang/test/SemaTemplate/crash.cpp
new file mode 100644
index 00000000000..428e95ccf96
--- /dev/null
+++ b/clang/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;
+}
OpenPOWER on IntegriCloud