summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/performance-unnecessary-copy-initialization.cpp
blob: ca0f591a3e8df5b35a0385dbf562a9d060b4e1d3 (plain)
1
2
3
4
5
6
7
#include "structures.h"

extern const std::string& constReference();

void foo() {
  const std::string UnnecessaryCopy = constReference();
}