Debian Codegraph @

testing/examples/good/code_blocks.rst

raw
1 ====
2 Test
3 ====
4
5 .. code:: bash
6
7 if [ "$x" == 'y' ]
8 then
9 exit 1
10 fi
11
12 .. code:: c
13
14 float foo(int n)
15 {
16 // Test C99.
17 float x[n];
18 x[0] = 1;
19 return x[0];
20 }
21
22 .. code:: cpp
23
24 #include <iostream>
25
26 int main()
27 {
28 auto x = 1;
29 return x;
30 }
31
32 .. code:: python
33
34 print(1)
35
36 Run more tests for checking performance.
37
38 .. code:: bash
39
40 if [ "$x" == 'y' ]
41 then
42 exit 1
43 fi
44
45 .. code:: c
46
47 float foo(int n)
48 {
49 // Test C99.
50 float x[n];
51 x[0] = 1;
52 return x[0];
53 }
54
55 .. code:: cpp
56
57 #include <iostream>
58
59 int main()
60 {
61 auto x = 1;
62 return x;
63 }
64
65 .. code:: python
66
67 print(1)
68
69 .. code:: bash
70
71 if [ "$x" == 'y' ]
72 then
73 exit 1
74 fi
75
76 .. code:: c
77
78 float foo(int n)
79 {
80 // Test C99.
81 float x[n];
82 x[0] = 1;
83 return x[0];
84 }
85
86 .. code:: cpp
87
88 #include <iostream>
89
90 int main()
91 {
92 auto x = 1;
93 return x;
94 }
95
96 .. code:: python
97
98 print(1)
99
100 .. code:: bash
101
102 if [ "$x" == 'y' ]
103 then
104 exit 1
105 fi
106
107 .. code:: c
108
109 float foo(int n)
110 {
111 // Test C99.
112 float x[n];
113 x[0] = 1;
114 return x[0];
115 }
116
117 .. code:: cpp
118
119 #include <iostream>
120
121 int main()
122 {
123 auto x = 1;
124 return x;
125 }
126
127 .. code:: python
128
129 print(1)
130
131 .. code:: bash
132
133 if [ "$x" == 'y' ]
134 then
135 exit 1
136 fi
137
138 .. code:: c
139
140 float foo(int n)
141 {
142 // Test C99.
143 float x[n];
144 x[0] = 1;
145 return x[0];
146 }
147
148 .. code:: cpp
149
150 #include <iostream>
151
152 int main()
153 {
154 auto x = 1;
155 return x;
156 }
157
158 .. code:: python
159
160 # ¬∆˚ß∂ƒß∂ƒ˚¬∆
161 print(1)