summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/readability-redundant-string-cstr.cpp
blob: d35a2998e5b50afb70af4b708d8e0bf951cdfcd8 (plain)
1
2
3
4
5
6
7
#include "structures.h"

void foo() {
  std::string a = "Mozilla";
  std::string tmp;
  tmp.assign(a.c_str());
}