https://gcc.gnu.org/g:b417df24dd83e3018df341da19d2c370b52d7f59

commit b417df24dd83e3018df341da19d2c370b52d7f59
Author: Tobias Burnus <tbur...@baylibre.com>
Date:   Mon Jan 27 14:29:35 2025 +0100

    c-c++-common/gomp/interop-4.c: For C++, require '{ target c++11 }'
    
    gcc/testsuite/
    
            * c-c++-common/gomp/interop-4.c: For C++,
            require '{ target c++11 }'.

Diff:
---
 gcc/testsuite/ChangeLog.omp                 | 5 +++++
 gcc/testsuite/c-c++-common/gomp/interop-4.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/gcc/testsuite/ChangeLog.omp b/gcc/testsuite/ChangeLog.omp
index 2beb177849bd..6504b49e4e80 100644
--- a/gcc/testsuite/ChangeLog.omp
+++ b/gcc/testsuite/ChangeLog.omp
@@ -1,3 +1,8 @@
+2025-01-27  Tobias Burnus  <tbur...@baylibre.com>
+
+       * c-c++-common/gomp/interop-4.c: For C++,
+       require '{ target c++11 }'.
+
 2025-01-27  Tobias Burnus  <tbur...@baylibre.com>
 
        Backported from master:
diff --git a/gcc/testsuite/c-c++-common/gomp/interop-4.c 
b/gcc/testsuite/c-c++-common/gomp/interop-4.c
index 1f9c987108b1..9b39ba0bedf7 100644
--- a/gcc/testsuite/c-c++-common/gomp/interop-4.c
+++ b/gcc/testsuite/c-c++-common/gomp/interop-4.c
@@ -1,3 +1,4 @@
+/* { dg-do compile { target { c || c++11 } } } */
 /* { dg-additional-options "-fdump-tree-original" }  */
 
 /* The following definitions are in omp_lib, which cannot be included

Reply via email to