1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 struct C {
4   typedef int I;
5 };
6 
7 typedef int I1, I2;
8 extern int* p;
9 extern int* q;
10 
11 void f() {
12   p->C::I::~I();
13   q->I1::~I2();
14 }
15 
16 struct A {
17   ~A();
18 };
19 
20 typedef A AB;
21 int main() {
22   AB *p;
23   p->AB::~AB(); // expected-error{{expected the class name after '~' to name a destructor}}
24 }
25