gcc - GNU Compiler Collection (original) (raw)

author Tobias Burnus tburnus@baylibre.com 2025-12-12 22:50:39 +0100
committer Tobias Burnus tburnus@baylibre.com 2025-12-12 22:50:39 +0100
commit 350794cb07fb6e8f3b928a49d43b12b8c0f94fd1 (patch)
tree 97b65970772ad733562fc91e4a056971a88beb25
parent OpenMP/Fortran: uses_allocators - suggest 5.2 format in the warning (diff)

libgomp/ChangeLog: * testsuite/libgomp.fortran/dep-uses-allocators.f90: Properly escape '(..)' in dg-warning.

-rw-r--r-- libgomp/testsuite/libgomp.fortran/dep-uses-allocators.f90 2

1 files changed, 1 insertions, 1 deletions

diff --git a/libgomp/testsuite/libgomp.fortran/dep-uses-allocators.f90 b/libgomp/testsuite/libgomp.fortran/dep-uses-allocators.f90index 6194dad2cfcd..ab81ffb910d9 100644--- a/libgomp/testsuite/libgomp.fortran/dep-uses-allocators.f90+++ b/libgomp/testsuite/libgomp.fortran/dep-uses-allocators.f90
@@ -1,5 +1,5 @@
1 ! { dg-do compile } 1 ! { dg-do compile }
2 ! { dg-warning "The specification of arguments to 'uses_allocators' at \\(1\\) where each item is of the form 'allocator\\(traits\\)' is deprecated since OpenMP 5.2; instead use 'uses_allocators(traits(trait): a1)' \\\[-Wdeprecated-openmp\\\]" "" { target *-*-* } 11 } 2 ! { dg-warning "The specification of arguments to 'uses_allocators' at \\(1\\) where each item is of the form 'allocator\\(traits\\)' is deprecated since OpenMP 5.2; instead use 'uses_allocators\\(traits\\(trait\\): a1\\)' \\\[-Wdeprecated-openmp\\\]" "" { target *-*-* } 11 }
3 3
4 program test 4 program test
5 use omp_lib 5 use omp_lib