Mercurial > archived > louis > epitech > mq > rathaxes
comparison 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 |
comparison
equal
deleted
inserted
replaced
94:c908de343118 | 95:4e7107e284de |
---|---|
1 # HG changeset patch | 1 # HG changeset patch |
2 # Parent ffa060c7b01bd1158337a7115f13ac9bf5d7df50 | 2 # Parent e3555104b356bbaf4ebed282f74f75323bf7eabf |
3 rathaxes: convert the test about pointers to Rathaxes types to a single file | 3 rathaxes: convert the test about pointers to Rathaxes types to a single file |
4 | 4 |
5 And move it to a more generic "language" directory under tests. | 5 And move it to a more generic "language" directory under tests. |
6 | 6 |
7 diff --git a/rathaxes/compiler/tests/CMakeLists.txt b/rathaxes/compiler/tests/CMakeLists.txt | 7 diff --git a/rathaxes/compiler/tests/CMakeLists.txt b/rathaxes/compiler/tests/CMakeLists.txt |
26 diff --git a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rtx b/rathaxes/compiler/tests/language/pointer_to_rathaxes_type.rtx | 26 diff --git a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rtx b/rathaxes/compiler/tests/language/pointer_to_rathaxes_type.rtx |
27 rename from rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rtx | 27 rename from rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rtx |
28 rename to rathaxes/compiler/tests/language/pointer_to_rathaxes_type.rtx | 28 rename to rathaxes/compiler/tests/language/pointer_to_rathaxes_type.rtx |
29 --- a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rtx | 29 --- a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rtx |
30 +++ b/rathaxes/compiler/tests/language/pointer_to_rathaxes_type.rtx | 30 +++ b/rathaxes/compiler/tests/language/pointer_to_rathaxes_type.rtx |
31 @@ -1,3 +1,57 @@ | 31 @@ -1,3 +1,58 @@ |
32 +/* Interfaces */ | 32 +/* Interfaces */ |
33 + | 33 + |
34 +interface Test | 34 +interface Test |
35 +{ | 35 +{ |
36 + provided pointcut code(); | 36 + provided pointcut code(); |
70 + { | 70 + { |
71 + int | 71 + int |
72 + main(void) | 72 + main(void) |
73 + { | 73 + { |
74 + ${Test::Test} *p; | 74 + ${Test::Test} *p; |
75 + ${Test::Test} *assign = NULL; | |
75 + | 76 + |
76 + ${pointcut ::IMPLEMENTATION(local.p)}; | 77 + ${pointcut ::IMPLEMENTATION(local.p)}; |
77 + | 78 + |
78 + return 0; | 79 + return 0; |
79 + } | 80 + } |
88 Test::entry_point(Test::Test t) | 89 Test::entry_point(Test::Test t) |
89 diff --git a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.blt b/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.blt | 90 diff --git a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.blt b/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.blt |
90 deleted file mode 100644 | 91 deleted file mode 100644 |
91 --- a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.blt | 92 --- a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.blt |
92 +++ /dev/null | 93 +++ /dev/null |
93 @@ -1,32 +0,0 @@ | 94 @@ -1,33 +0,0 @@ |
94 -with Test | 95 -with Test |
95 -{ | 96 -{ |
96 - ${pointcut Test::code()}; | 97 - ${pointcut Test::code()}; |
97 - | 98 - |
98 - template type Test::Test() | 99 - template type Test::Test() |
113 - { | 114 - { |
114 - int | 115 - int |
115 - main(void) | 116 - main(void) |
116 - { | 117 - { |
117 - ${Test::Test} *p; | 118 - ${Test::Test} *p; |
119 - ${Test::Test} *assign = NULL; | |
118 - | 120 - |
119 - ${pointcut ::IMPLEMENTATION(local.p)}; | 121 - ${pointcut ::IMPLEMENTATION(local.p)}; |
120 - | 122 - |
121 - return 0; | 123 - return 0; |
122 - } | 124 - } |