Skip to content

Commit 7de394a

Browse files
committed
Tests use C++ 23
1 parent 2ba986a commit 7de394a

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

c/test.sh

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
#!/usr/bin/env bash
2-
gcc -std=c2x anagrams.c && ./a.out rats | diff ../test/rats_heap_expected - && \
3-
gcc -std=c2x array_in_struct.c && ./a.out && \
4-
gcc -std=c2x assignment.c && ./a.out && \
5-
gcc -std=c2x cheating_with_pointers.c && ./a.out && \
6-
gcc -std=c2x const.c && ./a.out && \
7-
gcc -std=c2x directives.c && ./a.out && \
8-
gcc -std=c2x -c hashmap.c && \
9-
gcc -std=c2x indexing.c && ./a.out && \
10-
gcc -std=c2x memory.c && ./a.out && \
11-
gcc -std=c2x permutations.c && ./a.out I like carrots | diff - ../test/carrots_expected && \
12-
gcc -std=c2x reinterpret_cast.c && ./a.out && \
13-
gcc -std=c2x simple_macro.c && ./a.out && \
14-
gcc -std=c2x sizeof.c && ./a.out && \
15-
gcc -std=c2x sum_of_even_squares.c && ./a.out && \
16-
gcc -std=c2x sum.c && ./a.out && \
17-
gcc -std=c2x top_ten_scorers.c && ./a.out < ../test/wnba_input | diff ../test/wnba_expected - && \
18-
gcc -std=c2x triple.c && ./a.out | diff ../test/triple_expected - && \
19-
gcc -std=c2x ugly_pointer_arithmetic.c && ./a.out && \
20-
gcc -std=c2x union.c && ./a.out && \
21-
gcc -std=c2x wordcount.c && ./a.out < ../test/wordcount_ascii_input | diff ../test/wordcount_ascii_expected - && \
22-
gcc -std=c2x x_is_x.c && ./a.out
2+
gcc -std=c23 anagrams.c && ./a.out rats | diff ../test/rats_heap_expected - && \
3+
gcc -std=c23 array_in_struct.c && ./a.out && \
4+
gcc -std=c23 assignment.c && ./a.out && \
5+
gcc -std=c23 cheating_with_pointers.c && ./a.out && \
6+
gcc -std=c23 const.c && ./a.out && \
7+
gcc -std=c23 directives.c && ./a.out && \
8+
gcc -std=c23 -c hashmap.c && \
9+
gcc -std=c23 indexing.c && ./a.out && \
10+
gcc -std=c23 memory.c && ./a.out && \
11+
gcc -std=c23 permutations.c && ./a.out I like carrots | diff - ../test/carrots_expected && \
12+
gcc -std=c23 reinterpret_cast.c && ./a.out && \
13+
gcc -std=c23 simple_macro.c && ./a.out && \
14+
gcc -std=c23 sizeof.c && ./a.out && \
15+
gcc -std=c23 sum_of_even_squares.c && ./a.out && \
16+
gcc -std=c23 sum.c && ./a.out && \
17+
gcc -std=c23 top_ten_scorers.c && ./a.out < ../test/wnba_input | diff ../test/wnba_expected - && \
18+
gcc -std=c23 triple.c && ./a.out | diff ../test/triple_expected - && \
19+
gcc -std=c23 ugly_pointer_arithmetic.c && ./a.out && \
20+
gcc -std=c23 union.c && ./a.out && \
21+
gcc -std=c23 wordcount.c && ./a.out < ../test/wordcount_ascii_input | diff ../test/wordcount_ascii_expected - && \
22+
gcc -std=c23 x_is_x.c && ./a.out
2323

2424
if [ $? -ne 0 ]; then
2525
echo

0 commit comments

Comments
 (0)