blob: c230c5305e7a8dd5d2503d3122b20df749f7b8b4 [file] [log] [blame]
Douglas Gregor5d8419c2011-11-01 22:13:30 +00001// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
2
3struct 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};