Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify -Wthread-safety-analysis -std=c++11 %s
      2 // expected-no-diagnostics
      3 
      4 class Base {
      5 public:
      6   Base() {}
      7   virtual ~Base();
      8 };
      9 
     10 class S : public Base {
     11 public:
     12   ~S() override = default;
     13 };
     14 
     15 void Test() {
     16   const S &s = S();
     17 }
     18