Home | History | Annotate | Download | only in basic.lookup.argdep
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 namespace N1 {
      4   struct X { };
      5   int& f(void*);
      6 }
      7 
      8 namespace N2 {
      9   template<typename T> struct Y { };
     10 }
     11 
     12 namespace N3 {
     13   void test() {
     14     int &ir = f((N2::Y<N1::X>*)0);
     15   }
     16 }
     17 
     18 int g(void *);
     19 long g(N1::X);
     20 
     21 namespace N1 {
     22   void h(int (*)(void *));
     23 }
     24 
     25 void test() {
     26   h((&g));
     27 }
     28