Douglas Gregor | 5d8419c | 2011-11-01 22:13:30 +0000 | [diff] [blame^] | 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 | }; |