Add an interesting testcase we already handle correctly.

llvm-svn: 176890
This commit is contained in:
Rafael Espindola 2013-03-12 19:50:10 +00:00
parent 9d25a48b41
commit 1736f74669
1 changed files with 12 additions and 0 deletions

View File

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