This repository was archived by the owner on Dec 18, 2019. It is now read-only.
File tree 4 files changed +10
-1
lines changed
4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ mod tests {
172
172
173
173
assert_eq ! (
174
174
"; ModuleID = 'foobar'\n " . to_string( ) +
175
+ "source_filename = \" foobar\" \n " +
175
176
"\n " +
176
177
"define void @f() {\n " +
177
178
"entry:\n " +
@@ -193,6 +194,7 @@ mod tests {
193
194
194
195
assert_eq ! (
195
196
"; ModuleID = 'foobar'\n " . to_string( ) +
197
+ "source_filename = \" foobar\" \n " +
196
198
"\n " +
197
199
"define i1 @f() {\n " +
198
200
"entry:\n " +
@@ -214,6 +216,7 @@ mod tests {
214
216
215
217
assert_eq ! (
216
218
"; ModuleID = 'foobar'\n " . to_string( ) +
219
+ "source_filename = \" foobar\" \n " +
217
220
"\n " +
218
221
"define i8 @f() {\n " +
219
222
"entry:\n " +
@@ -240,6 +243,7 @@ mod tests {
240
243
241
244
assert_eq ! (
242
245
"; ModuleID = 'foobar'\n " . to_string( ) +
246
+ "source_filename = \" foobar\" \n " +
243
247
"\n " +
244
248
"define i8 @f() {\n " +
245
249
"entry:\n " +
Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ mod tests {
232
232
233
233
assert_eq ! (
234
234
"; ModuleID = 'foobar'\n " . to_string( ) +
235
+ "source_filename = \" foobar\" \n " +
235
236
"\n " +
236
237
"define i8 @f() {\n " +
237
238
"entry:\n " +
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ mod tests {
159
159
160
160
assert_eq ! (
161
161
"; ModuleID = 'foobar'\n " . to_string( ) +
162
+ "source_filename = \" foobar\" \n " +
162
163
"\n " +
163
164
"declare void @f()\n " ,
164
165
format!( "{}" , module)
@@ -178,6 +179,7 @@ mod tests {
178
179
179
180
assert_eq ! (
180
181
"; ModuleID = 'foobar'\n " . to_string( ) +
182
+ "source_filename = \" foobar\" \n " +
181
183
"\n " +
182
184
"declare double @f(i8, [7 x i1])\n " ,
183
185
format!( "{}" , module)
@@ -198,6 +200,7 @@ mod tests {
198
200
199
201
assert_eq ! (
200
202
"; ModuleID = 'foobar'\n " . to_string( ) +
203
+ "source_filename = \" foobar\" \n " +
201
204
"\n " +
202
205
"define void @f() {\n " +
203
206
"entry:\n " +
Original file line number Diff line number Diff line change @@ -154,7 +154,8 @@ mod tests {
154
154
let module = Module :: new ( "foobar" , & context) ;
155
155
156
156
assert_eq ! (
157
- "; ModuleID = 'foobar'\n " ,
157
+ "; ModuleID = 'foobar'\n " . to_string( ) +
158
+ "source_filename = \" foobar\" \n " ,
158
159
format!( "{}" , module)
159
160
) ;
160
161
}
You can’t perform that action at this time.
0 commit comments