diff options
author | David Shah <davey1576@gmail.com> | 2018-07-24 12:58:07 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-24 12:58:07 +0200 |
commit | 73877219403a2646f5504867d5b1ccc4cefda4c8 (patch) | |
tree | 9748bd4f8b680e5533b10ea7783acfa6470298b1 /bba | |
parent | 35a6bc496eb28f26c42e25a5e746987329e96f3e (diff) | |
parent | c06bca07134b8b52733b025d19fd26910cd9a4e3 (diff) | |
download | nextpnr-73877219403a2646f5504867d5b1ccc4cefda4c8.tar.gz nextpnr-73877219403a2646f5504867d5b1ccc4cefda4c8.tar.bz2 nextpnr-73877219403a2646f5504867d5b1ccc4cefda4c8.zip |
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'bba')
-rw-r--r-- | bba/main.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bba/main.cc b/bba/main.cc new file mode 100644 index 00000000..42b79504 --- /dev/null +++ b/bba/main.cc @@ -0,0 +1,15 @@ +#include <unistd.h> +#include <assert.h> +int main() +{ + char buffer[512]; + int i, j; + while (1) { + i = read(0, buffer, 512); + if (i == 0) break; + assert(i > 0); + j = write(1, buffer, i); + assert(i == j); + } + return 0; +} |