diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-02-07 18:32:25 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-02-07 18:32:25 +0000 |
commit | b30c0382022abc891f1c6586b80db14550442d25 (patch) | |
tree | 0624a7b8c973c1381e3463004622767a5ddfdcbf | |
parent | 6959acd4bb0979361365e675968173ede7183489 (diff) |
Testcase for r174477.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174640 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Sema/invalid-cast.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Sema/invalid-cast.cpp b/test/Sema/invalid-cast.cpp new file mode 100644 index 0000000000..2183352000 --- /dev/null +++ b/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]; +} |