gcroot testcase, patch by Eric Christopher.
[oota-llvm.git] / test / CFrontend / 2003-07-22-ArrayAccessTypeSafety.c.tr
index 7024ff7727edb30ff7ed7ff0c5400afb5e63dcf9..51e66c9b83952404694e9b94b3bfad527588cb7d 100644 (file)
@@ -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 bitcast
  */
 
 void test(int* array, long long N) {
-    array[N] = 33;
+    array[N] = N[array] = 33;
 }