-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f902b5
commit 6e282c9
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: msys | ||
install: gcc make diffutils | ||
- uses: actions/checkout@v4 | ||
- shell: msys2 {0} | ||
run: | | ||
mount | ||
./configure | ||
gcc line.c | ||
./a.exe | od -t ax1 | ||
od -t ax1 b | ||
od -t ax1 c | ||
od -t ax1 test/basic.c | ||
make all check bootstrap |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <string.h> | ||
#include <stdio.h> | ||
int main(void) { | ||
char line[256]; | ||
puts("hello"); | ||
FILE *f = fopen("b", "w"); | ||
fputs("hello\n", f); | ||
fclose(f); | ||
f = fopen("c", "wt"); | ||
fputs("hello\n", f); | ||
fclose(f); | ||
f = fopen("test/basic.c", "r"); | ||
fgets(line, sizeof line, f); | ||
fprintf(stderr, "c=%d %d\n", line[strlen(line) - 2], line[strlen(line) - 1]); | ||
fclose(f); | ||
} |