Skip to content

Commit 2cb8c79

Browse files
committed
ci:flang LLVM 20
1 parent 8ecb9dd commit 2cb8c79

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ci.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
jobs:
2121

22-
linux-gcc14:
22+
linux-gcc:
2323
runs-on: ubuntu-24.04
2424
timeout-minutes: 15
2525

@@ -38,7 +38,7 @@ jobs:
3838
- uses: ./.github/workflows/composite-unix
3939

4040

41-
linux-gcc9:
41+
linux-gcc-old:
4242
runs-on: ubuntu-22.04
4343
timeout-minutes: 15
4444

@@ -59,7 +59,7 @@ jobs:
5959

6060
valgrind-memory:
6161
runs-on: ubuntu-latest
62-
needs: linux-gcc14
62+
needs: linux-gcc
6363
timeout-minutes: 10
6464

6565
steps:
@@ -79,7 +79,7 @@ jobs:
7979

8080
strategy:
8181
matrix:
82-
clang-version: [18]
82+
clang-version: [20]
8383

8484
env:
8585
CC: clang-${{ matrix.clang-version }}
@@ -89,8 +89,13 @@ jobs:
8989
steps:
9090
- uses: actions/checkout@v4
9191

92+
- name: Apt LLVM
93+
run: |
94+
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-noble.list
95+
sudo apt update
96+
9297
- name: install Flang
93-
run: sudo apt install --no-install-recommends flang
98+
run: sudo apt install --no-install-recommends clang-${{ matrix.clang-version }} flang-${{ matrix.clang-version }}
9499

95100
- uses: ./.github/workflows/composite-unix
96101

test/pointer/README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,4 @@ and modern "nullptr" in
77
are represented in Fortran
88
[iso_c_binding](https://fortranwiki.org/fortran/show/iso_c_binding).
99

10-
Unlike in C / C++, do not check equality with C_NULL_PTR in Fortran.
11-
Instead, by definition the
12-
[c_associated()](https://fortranwiki.org/fortran/show/c_associated)
13-
logical function returns ".false." if the C_PTR is C_NULL_PTR, and ".true." otherwise.
14-
See [strptime.f90](./strptime.f90)
15-
for an example of checking in Fortran for a C null pointer returned from a function.
10+
See [nullptr](../nullptr) for examples of checking for C / C++ NULL / nullptr from Fortran.

0 commit comments

Comments
 (0)