Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
      2 
      3 struct rdar9677163 {
      4   struct Y { ~Y(); };
      5   struct Z { ~Z(); };
      6   Y::~Y() { } // expected-error{{non-friend class member '~Y' cannot have a qualified name}}
      7   ~Z(); // expected-error{{expected the class name after '~' to name the enclosing class}}
      8 };
      9