This commit is contained in:
parent
3db341eb92
commit
35381d6778
|
|
@ -565,7 +565,12 @@ namespace PascalABCCompiler.PCU
|
|||
pcu_file.SourceFileName = br.ReadString();
|
||||
else
|
||||
pcu_file.SourceFileName = Path.GetFileNameWithoutExtension(FileName);
|
||||
int num_names = br.ReadInt32();
|
||||
if (Path.GetDirectoryName(pcu_file.SourceFileName) == "")
|
||||
cur_doc = new document(Path.Combine(Path.GetDirectoryName(FileName), pcu_file.SourceFileName));
|
||||
else
|
||||
cur_doc = new document(pcu_file.SourceFileName);
|
||||
|
||||
int num_names = br.ReadInt32();
|
||||
pcu_file.names = new NameRef[num_names];
|
||||
for (int i=0; i<num_names; i++)
|
||||
{
|
||||
|
|
|
|||
6
TestSuite/errors/err0524_res_unit.pas
Normal file
6
TestSuite/errors/err0524_res_unit.pas
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
//!Файл 'non_existing_file' не найден
|
||||
unit err0524_res_unit;
|
||||
|
||||
{$resource non_existing_file}
|
||||
|
||||
end.
|
||||
4
TestSuite/errors/err0525_res1.pas
Normal file
4
TestSuite/errors/err0525_res1.pas
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
uses err0524_res_unit;
|
||||
begin
|
||||
|
||||
end.
|
||||
4
TestSuite/errors/err0525_res2.pas
Normal file
4
TestSuite/errors/err0525_res2.pas
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
uses err0524_res_unit;
|
||||
begin
|
||||
|
||||
end.
|
||||
Loading…
Reference in a new issue