1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Fixed a module extension issue with mIRFunction not being cleared

This commit is contained in:
Brian Fiete 2019-09-07 06:38:56 -07:00
parent 07a8e1fe23
commit d7da98444e
7 changed files with 71 additions and 66 deletions

View file

@ -0,0 +1,5 @@
FileVersion = 1
[Project]
Name = "Bug"
StartupObject = "Bug.Program"

View file

@ -0,0 +1,6 @@
FileVersion = 1
Projects = {Bug = {Path = "."}}
[Workspace]
StartupProject = "Bug"

View 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()

View 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();
*/
}
}
}