commit | b31d71367bac0896dbde0f93a939ec7da19a7bf8 | [log] [tgz] |
---|---|---|
author | Chad Rosier <mcrosier@apple.com> | Thu Feb 07 18:32:25 2013 +0000 |
committer | Chad Rosier <mcrosier@apple.com> | Thu Feb 07 18:32:25 2013 +0000 |
tree | 33ad78c56ca144ba5fbdcd0d16c66b08e5209d9d | |
parent | 3a967eac1e74ec24337fb88a4d5d975684878049 [diff] [blame] |
Testcase for r174477. llvm-svn: 174640
diff --git a/clang/test/Sema/invalid-cast.cpp b/clang/test/Sema/invalid-cast.cpp new file mode 100644 index 0000000..2183352 --- /dev/null +++ b/clang/test/Sema/invalid-cast.cpp
@@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -verify -fsyntax-only %s +// expected-no-diagnostics +// <rdar://problem/13153516> - This previously triggered an assertion failure. +template<class T> +struct X { + T array; +}; + +int foo(X<int[1]> x0) { + return x0.array[17]; +}