# HG changeset patch # User Louis Opter # Date 1350864142 -7200 # Node ID 4e7107e284de17b0f6a930ee37b7a2cd213a9a21 # Parent c908de343118e2e0da9ca4363c9ccc6e63049dee Check that direct assignment works too in the pointer to Rathaxes type regression test diff -r c908de343118 -r 4e7107e284de rathaxes_add_a_test_to_reproduce_the_pointer_to_rathaxes_bug.patch --- a/rathaxes_add_a_test_to_reproduce_the_pointer_to_rathaxes_bug.patch Mon Oct 22 01:27:53 2012 +0200 +++ b/rathaxes_add_a_test_to_reproduce_the_pointer_to_rathaxes_bug.patch Mon Oct 22 02:02:22 2012 +0200 @@ -1,8 +1,7 @@ # HG changeset patch -# Parent 7eec45c5cc587ee8b1839b38e9d9ec652856c45a +# Parent 7adecea6d0fdaad6bb4a97993ef3f7e6cb465b8e rathaxes: add a test for the pointer to Rathaxes type bug - diff --git a/rathaxes/compiler/tests/CMakeLists.txt b/rathaxes/compiler/tests/CMakeLists.txt --- a/rathaxes/compiler/tests/CMakeLists.txt +++ b/rathaxes/compiler/tests/CMakeLists.txt @@ -24,7 +23,7 @@ new file mode 100644 --- /dev/null +++ b/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.blt -@@ -0,0 +1,32 @@ +@@ -0,0 +1,33 @@ +with Test +{ + ${pointcut Test::code()}; @@ -49,6 +48,7 @@ + main(void) + { + ${Test::Test} *p; ++ ${Test::Test} *assign = NULL; + + ${pointcut ::IMPLEMENTATION(local.p)}; + diff -r c908de343118 -r 4e7107e284de rathaxes_use_single_file_language_tests.patch --- 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)}; -