aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/PR10447.cpp
blob: 5ba74aaba36c274a7c9b75b4ef57ecee81c485f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// RUN: %clang_cc1 -verify %s
// expected-no-diagnostics

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

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