26 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s2// expected-no-diagnostics3 4struct C {5 typedef int I;6};7 8typedef int I1, I2;9extern int* p;10extern int* q;11 12void f() {13 p->C::I::~I();14 q->I1::~I2();15}16 17struct A {18 ~A();19};20 21typedef A AB;22int main() {23 AB *p;24 p->AB::~AB();25}26