Created
April 29, 2019 23:02
-
-
Save lambdageek/cdc3142f68643288352d699d5e33d96a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .PHONY: all run clean | |
| all: Repro13734.exe | |
| Repro13734.exe: Repro13734.cs Point.dll | |
| csc -r:Point.dll Repro13734.cs | |
| Point.dll: Point.cs | |
| csc -target:library Point.cs | |
| run: | |
| -rm -f Point.dll | |
| mono Repro13734.exe | |
| clean: | |
| -rm -f Point.dll Repro13734.dll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public struct Point { | |
| public int X; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Runtime.InteropServices; | |
| // The crash happens when we init an auto layout valuetype with a field from a missing assembly. | |
| [StructLayout (LayoutKind.Auto)] | |
| public struct H<T> { | |
| public T TheOne; | |
| public T TheOther; | |
| } | |
| public struct B { | |
| public Point X; | |
| public B (Point a) | |
| { | |
| X = a; | |
| } | |
| } | |
| public class C { | |
| public H<B> floof; | |
| public C () { } | |
| } | |
| public class M { | |
| public static void Main () { | |
| _ = new C(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment