Richard Smith | 05afe5e | 2012-03-13 03:12:56 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify %s |
Andy Gibbs | c6e68da | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Richard Smith | 05afe5e | 2012-03-13 03:12:56 +0000 | [diff] [blame] | 3 | |
4 | // PR12223 | ||||
5 | namespace test1 { | ||||
6 | namespace N { | ||||
Richard Smith | 39b7968 | 2013-06-18 20:15:12 +0000 | [diff] [blame] | 7 | extern "C" void f_test1(struct S*); |
Richard Smith | 05afe5e | 2012-03-13 03:12:56 +0000 | [diff] [blame] | 8 | void g(S*); |
9 | } | ||||
10 | namespace N { | ||||
11 | void f(struct S *s) { | ||||
12 | g(s); | ||||
13 | } | ||||
14 | } | ||||
15 | } | ||||
16 | |||||
17 | // PR10447 | ||||
18 | namespace test2 { | ||||
19 | extern "C" { | ||||
Richard Smith | 39b7968 | 2013-06-18 20:15:12 +0000 | [diff] [blame] | 20 | void f_test2(struct Bar*) { } |
Richard Smith | 05afe5e | 2012-03-13 03:12:56 +0000 | [diff] [blame] | 21 | test2::Bar *ptr; |
22 | } | ||||
23 | } |