Add an interesting testcase we already handle correctly.
llvm-svn: 176890
This commit is contained in:
parent
9d25a48b41
commit
1736f74669
|
@ -44,3 +44,15 @@ extern "C" {
|
|||
extern "C" {
|
||||
static float test5_b; // expected-error {{redefinition of 'test5_b' with a different type: 'float' vs 'int'}}
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
void f() {
|
||||
extern int test6_b;
|
||||
}
|
||||
}
|
||||
namespace foo {
|
||||
extern "C" {
|
||||
static float test6_b;
|
||||
extern float test6_b;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue