From e7d78882b4ca08b9e24f140dbb97875310f67ec7 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 19 Mar 2012 23:48:41 +0000 Subject: Fix crash when querying the CFG reported when using the thread safety analysis on code using multi-dimensional arrays. Fix by DeLesley Hutchins, and reported in PR 12271. llvm-svn: 153067 --- clang/test/SemaCXX/warn-everthing.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 clang/test/SemaCXX/warn-everthing.cpp (limited to 'clang/test') diff --git a/clang/test/SemaCXX/warn-everthing.cpp b/clang/test/SemaCXX/warn-everthing.cpp new file mode 100644 index 00000000000..144a8f90df2 --- /dev/null +++ b/clang/test/SemaCXX/warn-everthing.cpp @@ -0,0 +1,13 @@ +// RUN: %clang -Weverything -fsyntax-only %s -verify + +// This previously crashed due to a bug in the CFG. Exercising all +// warnings helps check CFG construction. +class PR12271 { +public: + PR12271(); + ~PR12271(); +}; + +void testPR12271() { + PR12271 a[1][1]; +} \ No newline at end of file -- cgit v1.2.3