projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New testcase for PR1744
[oota-llvm.git]
/
test
/
CFrontend
/
2003-07-22-ArrayAccessTypeSafety.c.tr
diff --git
a/test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr
b/test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr
index 7024ff7727edb30ff7ed7ff0c5400afb5e63dcf9..51e66c9b83952404694e9b94b3bfad527588cb7d 100644
(file)
--- a/
test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr
+++ b/
test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr
@@
-1,7
+1,7
@@
-/* RUN:
llvmgcc -xc %s -c -o - | dis | not grep
cast
+/* RUN:
%llvmgcc -xc %s -S -o - | grep -v alloca | not grep bit
cast
*/
void test(int* array, long long N) {
- array[N] = 33;
+ array[N] =
N[array] =
33;
}