aboutsummaryrefslogblamecommitdiff
path: root/test/SemaCXX/PR10447.cpp
blob: 0c57177b872a519bd709f31434646de283b767a0 (plain) (tree)
1
2
3
4
5
6
7
                             
                          



                 
                                       











                         
                                 


                    
// RUN: %clang_cc1 -verify %s
// expected-no-diagnostics

// PR12223
namespace test1 {
  namespace N {
    extern "C" void f_test1(struct S*);
    void g(S*);
  }
  namespace N {
    void f(struct S *s) {
      g(s);
    }
  }
}

// PR10447
namespace test2 {
  extern "C" {
    void f_test2(struct Bar*) { }
    test2::Bar *ptr;
  }
}