diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-10-22 23:18:17 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-10-22 23:18:17 +0100 |
| commit | c87ffcbab5927c660d339d3b47b75acb50deb085 (patch) | |
| tree | d1bcebfdc82565179fd8718bea37c1dae6bca3b8 /examples/00-missing-main | |
| parent | 9c35257a360c8bea20e766b44da7eb4897a223b3 (diff) | |
Check that main function is present
Diffstat (limited to 'examples/00-missing-main')
| -rw-r--r-- | examples/00-missing-main/shed.toml | 7 | ||||
| -rw-r--r-- | examples/00-missing-main/src/True.shed | 0 |
2 files changed, 7 insertions, 0 deletions
diff --git a/examples/00-missing-main/shed.toml b/examples/00-missing-main/shed.toml new file mode 100644 index 00000000..c01af0d7 --- /dev/null +++ b/examples/00-missing-main/shed.toml @@ -0,0 +1,7 @@ +[[shed.bins]] +name = "true" +main-namespace = "True" + +[[shed.examples]] +bin = "true" +expected-error = "Namespace True has no field main" diff --git a/examples/00-missing-main/src/True.shed b/examples/00-missing-main/src/True.shed new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/examples/00-missing-main/src/True.shed |
