Add forgotten test case for linkage specifications

llvm-svn: 61737
This commit is contained in:
Douglas Gregor 2009-01-05 19:50:09 +00:00
parent d1810a1c5a
commit 3bdc895818
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// RUN: clang -fsyntax-only -verify %s
extern "C" {
extern "C" void f(int);
}
extern "C++" {
extern "C++" int& g(int);
float& g();
}
double& g(double);
void test(int x, double d) {
f(x);
float &f1 = g();
int& i1 = g(x);
double& d1 = g(d);
}