blob: 5ba74aaba36c274a7c9b75b4ef57ecee81c485f5 [file] [log] [blame]
Richard Smith1b7f9cb2012-03-13 03:12:56 +00001// RUN: %clang_cc1 -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Richard Smith1b7f9cb2012-03-13 03:12:56 +00003
4// PR12223
5namespace test1 {
6 namespace N {
7 extern "C" void f(struct S*);
8 void g(S*);
9 }
10 namespace N {
11 void f(struct S *s) {
12 g(s);
13 }
14 }
15}
16
17// PR10447
18namespace test2 {
19 extern "C" {
20 void f(struct Bar*) { }
21 test2::Bar *ptr;
22 }
23}