public void SimpleLoadParse_Expected_True() { LLoad load = new LLoad(_function, _alloca.PointerRef); Assert.AreEqual( $"{load.ValueRef.Identifier} = {LKeywords.Load} {LType.Int32Type().Parse()}, {load.PointerRef.ParseType()} {load.PointerRef.Identifier}", LHelper.Trim(load.ParseInstruction())); }
public void LoadParseIsAtomicVolatile_Expected_True() { LLoad load = new LLoad(_function, _alloca.PointerRef) { IsAtomic = true, IsVolatile = true }; Assert.AreEqual( $"{load.ValueRef.Identifier} = {LKeywords.Load} {LKeywords.Atomic} {LKeywords.Volatile} {LType.Int32Type().Parse()}, {load.PointerRef.ParseType()} {load.PointerRef.Identifier}", LHelper.Trim(load.ParseInstruction())); }