diff options
Diffstat (limited to 'test/SemaTemplate/crash.cpp')
-rw-r--r-- | test/SemaTemplate/crash.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaTemplate/crash.cpp b/test/SemaTemplate/crash.cpp new file mode 100644 index 0000000..428e95c --- /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; +} |