vala-tests r23 - trunk/tests/bugs
- From: malureau svn gnome org
- To: svn-commits-list gnome org
- Subject: vala-tests r23 - trunk/tests/bugs
- Date: Sat, 18 Oct 2008 15:37:06 +0000 (UTC)
Author: malureau
Date: Sat Oct 18 15:37:06 2008
New Revision: 23
URL: http://svn.gnome.org/viewvc/vala-tests?rev=23&view=rev
Log:
Add bug 434506 test
Added:
trunk/tests/bugs/434506.test (contents, props changed)
trunk/tests/bugs/434506.vala
Added: trunk/tests/bugs/434506.test
==============================================================================
--- (empty file)
+++ trunk/tests/bugs/434506.test Sat Oct 18 15:37:06 2008
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+set -e
+
+SRCDIR=../tests/bugs
+
+if [ "x$VALAC" = "x" ] ; then
+ VALAC=valac
+ SRCDIR=.
+fi
+
+while true ; do
+ case "$1" in
+ --interact) INTERACT=1 ; shift ;;
+ --) shift ; break ;;
+ *) break ;;
+ esac
+done
+
+TESTNAME=`basename $0 .test`
+
+ $VALAC -o $TESTNAME $SRCDIR/$TESTNAME.vala $VALAFLAGS
+
+true || exit 1
+
+if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then
+ G_DEBUG=fatal_warnings ./$TESTNAME $@
+else
+ echo ""
+ [ "x1" = "x0" ] && echo "*** WARNING: This vala test is interactive and will not be run (try --interact) ***"
+ [ "x1" = "xno" ] && rm -rf 434506.o
+fi
+
Added: trunk/tests/bugs/434506.vala
==============================================================================
--- (empty file)
+++ trunk/tests/bugs/434506.vala Sat Oct 18 15:37:06 2008
@@ -0,0 +1,22 @@
+using GLib;
+
+void main () {
+ var test = new int[10];
+ var z = test[(char)0];
+ z = test[(uchar)0];
+ z = test[(int)0];
+ z = test[(uint)0];
+ z = test[(short)0];
+ z = test[(long)0];
+ z = test[(ulong)0];
+ z = test[(size_t)0];
+ z = test[(ssize_t)0];
+ z = test[(int8)0];
+ z = test[(uint8)0];
+ z = test[(int16)0];
+ z = test[(uint16)0];
+ z = test[(int32)0];
+ z = test[(uint32)0];
+ z = test[(int64)0];
+ z = test[(uint64)0];
+}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]