mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 15:26:00 +02:00
Fixed a module extension issue with mIRFunction not being cleared
This commit is contained in:
parent
07a8e1fe23
commit
d7da98444e
7 changed files with 71 additions and 66 deletions
5
IDE/Tests/BugW002/BeefProj.toml
Normal file
5
IDE/Tests/BugW002/BeefProj.toml
Normal file
|
@ -0,0 +1,5 @@
|
|||
FileVersion = 1
|
||||
|
||||
[Project]
|
||||
Name = "Bug"
|
||||
StartupObject = "Bug.Program"
|
6
IDE/Tests/BugW002/BeefSpace.toml
Normal file
6
IDE/Tests/BugW002/BeefSpace.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
FileVersion = 1
|
||||
Projects = {Bug = {Path = "."}}
|
||||
|
||||
[Workspace]
|
||||
StartupProject = "Bug"
|
||||
|
8
IDE/Tests/BugW002/scripts/Test.txt
Normal file
8
IDE/Tests/BugW002/scripts/Test.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
# This tests extensions in Span<uint8>, whose IRFunction was not being cleared
|
||||
|
||||
ShowFile("src/Program.bf")
|
||||
Compile()
|
||||
ToggleCommentAt("Main_OpenReg")
|
||||
Compile()
|
||||
ToggleCommentAt("Main_GetValue")
|
||||
Compile()
|
25
IDE/Tests/BugW002/src/Program.bf
Normal file
25
IDE/Tests/BugW002/src/Program.bf
Normal file
|
@ -0,0 +1,25 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System;
|
||||
|
||||
namespace Bug
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
/*Main_OpenReg
|
||||
Windows.HKey key = 0;
|
||||
Windows.RegOpenKeyExA(Windows.HKEY_LOCAL_MACHINE, @"SYSTEM\CurrentControlSet\Control\Session Manager\Environment", 0, Windows.KEY_QUERY_VALUE, out key);
|
||||
if (key.IsInvalid)
|
||||
Runtime.FatalError();
|
||||
*/
|
||||
|
||||
/*Main_GetValue
|
||||
String path = scope .();
|
||||
if (key.GetValue("path", path) case .Err)
|
||||
Runtime.FatalError();
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue