Debian Codegraph @

gcc/testsuite/g++.dg/gomp/pr91118-1.C

raw
1 // PR c++/91118
2 // { dg-do compile }
3 // { dg-additional-options "-fsanitize=undefined" }
4 // { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
5
6 #include <iostream>
7
8 void
9 foo ()
10 {
11 #pragma omp parallel default(none) shared(std::cerr)
12 std::cerr << "hello" << std::endl;
13 }