Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / thread-safety-reference-handling.cpp
blob2f7eb48d3436611ffca1bf2a8ca789c31d3a2f3b
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wthread-safety-analysis -std=c++11 %s
2 // expected-no-diagnostics
4 class Base {
5 public:
6 Base() {}
7 virtual ~Base();
8 };
10 class S : public Base {
11 public:
12 ~S() override = default;
15 void Test() {
16 const S &s = S();