projects
/
clang
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6959acd
)
Testcase for r174477.
author
Chad Rosier
<mcrosier@apple.com>
Thu, 7 Feb 2013 18:32:25 +0000
(18:32 +0000)
committer
Chad Rosier
<mcrosier@apple.com>
Thu, 7 Feb 2013 18:32:25 +0000
(18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174640
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Sema/invalid-cast.cpp
[new file with mode: 0644]
patch
|
blob
diff --git a/test/Sema/invalid-cast.cpp
b/test/Sema/invalid-cast.cpp
new file mode 100644
(file)
index 0000000..
2183352
--- /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];
+}