You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
335 B

// 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;
}
}