2012-03-13 11:12:56 +08:00
|
|
|
// RUN: %clang_cc1 -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2012-03-13 11:12:56 +08:00
|
|
|
|
|
|
|
// PR12223
|
|
|
|
namespace test1 {
|
|
|
|
namespace N {
|
2013-06-19 04:15:12 +08:00
|
|
|
extern "C" void f_test1(struct S*);
|
2012-03-13 11:12:56 +08:00
|
|
|
void g(S*);
|
|
|
|
}
|
|
|
|
namespace N {
|
|
|
|
void f(struct S *s) {
|
|
|
|
g(s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// PR10447
|
|
|
|
namespace test2 {
|
|
|
|
extern "C" {
|
2013-06-19 04:15:12 +08:00
|
|
|
void f_test2(struct Bar*) { }
|
2012-03-13 11:12:56 +08:00
|
|
|
test2::Bar *ptr;
|
|
|
|
}
|
|
|
|
}
|