commit | 1a526fd96cb393bb5a5bcef3e376bf0a2d61073a | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Thu Sep 29 19:42:27 2011 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Thu Sep 29 19:42:27 2011 +0000 |
tree | 7b1c25efe4d70ee8263b22044bc76e4398c28833 | |
parent | 2316cd8b798be3163878e7397ec68a8890063098 [diff] [blame] |
PR11000: Fix crash on invalid. llvm-svn: 140802
diff --git a/clang/test/Parser/PR11000.cpp b/clang/test/Parser/PR11000.cpp new file mode 100644 index 0000000..41c6206 --- /dev/null +++ b/clang/test/Parser/PR11000.cpp
@@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -std=c++0x %s 2>&1 | FileCheck %s + +// PR11000: Don't crash. +class tuple<> +{ + template <class _Alloc> + tuple(allocator_arg_t, const _Alloc&) {} + +// CHECK: 6 errors generated.