[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / member-class-11.cpp
blobc230c5305e7a8dd5d2503d3122b20df749f7b8b4
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
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 };