repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
member-class-11.cpp
blob
c230c5305e7a8dd5d2503d3122b20df749f7b8b4
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
};