blob: 4318a26abac52933b235679e2c4a572b4576c931 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// PR gcov-profile/88263
// { dg-options "-fprofile-arcs -ftest-coverage -std=c++11" }
// { dg-do run { target native } }
/* { dg-skip-if "requires hosted libstdc++ for sstream" { ! hostedlib } } */
#include <sstream>
namespace logging {
class Logstream {
public:
private:
/// The logging stream
static thread_local std::ostringstream os_;
};
}
namespace logging {
thread_local std::ostringstream Logstream::os_;
}
int main()
{
return 0;
}
// { dg-final { run-gcov pr88263.C } }
|