diff rathaxes_use_single_file_language_tests.patch @ 95:4e7107e284de

Check that direct assignment works too in the pointer to Rathaxes type regression test
author Louis Opter <louis@lse.epita.fr>
date Mon, 22 Oct 2012 02:02:22 +0200
parents c908de343118
children
line wrap: on
line diff
--- a/rathaxes_use_single_file_language_tests.patch	Mon Oct 22 01:27:53 2012 +0200
+++ b/rathaxes_use_single_file_language_tests.patch	Mon Oct 22 02:02:22 2012 +0200
@@ -1,5 +1,5 @@
 # HG changeset patch
-# Parent ffa060c7b01bd1158337a7115f13ac9bf5d7df50
+# Parent e3555104b356bbaf4ebed282f74f75323bf7eabf
 rathaxes: convert the test about pointers to Rathaxes types to a single file
 
 And move it to a more generic "language" directory under tests.
@@ -28,7 +28,7 @@
 rename to rathaxes/compiler/tests/language/pointer_to_rathaxes_type.rtx
 --- a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rtx
 +++ b/rathaxes/compiler/tests/language/pointer_to_rathaxes_type.rtx
-@@ -1,3 +1,57 @@
+@@ -1,3 +1,58 @@
 +/* Interfaces */
 +
 +interface Test
@@ -72,6 +72,7 @@
 +            main(void)
 +            {
 +                ${Test::Test} *p;
++                ${Test::Test} *assign = NULL;
 +
 +                ${pointcut ::IMPLEMENTATION(local.p)};
 +
@@ -90,7 +91,7 @@
 deleted file mode 100644
 --- a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.blt
 +++ /dev/null
-@@ -1,32 +0,0 @@
+@@ -1,33 +0,0 @@
 -with Test
 -{
 -    ${pointcut Test::code()};
@@ -115,6 +116,7 @@
 -            main(void)
 -            {
 -                ${Test::Test} *p;
+-                ${Test::Test} *assign = NULL;
 -
 -                ${pointcut ::IMPLEMENTATION(local.p)};
 -