comparison gcc/testsuite/g++.dg/gcov/pr88263-2.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 // PR gcov-profile/88263
2 // { dg-options "-fprofile-arcs -ftest-coverage -std=c++11" }
3 // { dg-do run { target native } }
4
5 #include <sstream>
6
7 namespace logging {
8 class Logstream {
9 ~Logstream();
10 static thread_local std::ostringstream os_;
11 };
12 }
13 namespace logging {
14 thread_local std::ostringstream Logstream::os_;
15 Logstream::~Logstream() {
16 os_.clear();
17 }
18 }
19
20 int main()
21 {
22 return 0;
23 }
24
25 // { dg-final { run-gcov pr88263-2.C } }