annotate rathaxes_add_a_test_to_reproduce_the_pointer_to_rathaxes_bug.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 5eb746474f0f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
92
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
1 # HG changeset patch
95
4e7107e284de Check that direct assignment works too in the pointer to Rathaxes type regression test
Louis Opter <louis@lse.epita.fr>
parents: 92
diff changeset
2 # Parent 7adecea6d0fdaad6bb4a97993ef3f7e6cb465b8e
92
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
3 rathaxes: add a test for the pointer to Rathaxes type bug
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
4
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
5 diff --git a/rathaxes/compiler/tests/CMakeLists.txt b/rathaxes/compiler/tests/CMakeLists.txt
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
6 --- a/rathaxes/compiler/tests/CMakeLists.txt
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
7 +++ b/rathaxes/compiler/tests/CMakeLists.txt
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
8 @@ -43,3 +43,5 @@
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
9
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
10 # Tests for the typing system (should not do anymore than parsing/checking typing)
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
11 ADD_SUBDIRECTORY(typing)
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
12 +
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
13 +ADD_SUBDIRECTORY(pointer_to_rathaxes_type)
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
14 diff --git a/rathaxes/compiler/tests/pointer_to_rathaxes_type/CMakeLists.txt b/rathaxes/compiler/tests/pointer_to_rathaxes_type/CMakeLists.txt
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
15 new file mode 100644
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
16 --- /dev/null
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
17 +++ b/rathaxes/compiler/tests/pointer_to_rathaxes_type/CMakeLists.txt
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
18 @@ -0,0 +1,3 @@
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
19 +ADD_RATHAXES_SOURCES(test_pointer_to_rathaxes_type pointer_to_rathaxes_type.rtx
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
20 + RTI pointer_to_rathaxes_type.rti
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
21 + BLT pointer_to_rathaxes_type.blt)
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
22 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
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
23 new file mode 100644
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
24 --- /dev/null
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
25 +++ b/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.blt
95
4e7107e284de Check that direct assignment works too in the pointer to Rathaxes type regression test
Louis Opter <louis@lse.epita.fr>
parents: 92
diff changeset
26 @@ -0,0 +1,33 @@
92
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
27 +with Test
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
28 +{
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
29 + ${pointcut Test::code()};
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
30 +
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
31 + template type Test::Test()
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
32 + {
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
33 + chunk ::decl()
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
34 + {
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
35 + int;
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
36 + }
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
37 +
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
38 + map
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
39 + {
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
40 + }
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
41 + }
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
42 +
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
43 + template sequence Test::entry_point(Test::Test)
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
44 + {
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
45 + chunk code()
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
46 + {
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
47 + int
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
48 + main(void)
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
49 + {
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
50 + ${Test::Test} *p;
95
4e7107e284de Check that direct assignment works too in the pointer to Rathaxes type regression test
Louis Opter <louis@lse.epita.fr>
parents: 92
diff changeset
51 + ${Test::Test} *assign = NULL;
92
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
52 +
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
53 + ${pointcut ::IMPLEMENTATION(local.p)};
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
54 +
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
55 + return 0;
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
56 + }
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
57 + }
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
58 + }
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
59 +}
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
60 diff --git a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rti b/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rti
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
61 new file mode 100644
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
62 --- /dev/null
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
63 +++ b/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rti
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
64 @@ -0,0 +1,14 @@
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
65 +interface Test
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
66 +{
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
67 + provided pointcut code();
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
68 +
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
69 + provided type Test
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
70 + {
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
71 + chunk ::decl();
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
72 + }
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
73 +
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
74 + required sequence entry_point(Test::Test)
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
75 + {
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
76 + provided chunk code();
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
77 + }
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
78 +}
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
79 diff --git a/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rtx b/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rtx
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
80 new file mode 100644
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
81 --- /dev/null
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
82 +++ b/rathaxes/compiler/tests/pointer_to_rathaxes_type/pointer_to_rathaxes_type.rtx
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
83 @@ -0,0 +1,10 @@
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
84 +device Test use Test
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
85 +{
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
86 + Test::entry_point(Test::Test t)
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
87 + {
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
88 + }
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
89 +}
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
90 +
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
91 +configuration
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
92 +{
5eb746474f0f Add a test for the pointer to Rathaxes type/variable bug
Louis Opter <louis@lse.epita.fr>
parents:
diff changeset
93 +}