forked from OSchip/llvm-project
Add forgotten test case for linkage specifications
llvm-svn: 61737
This commit is contained in:
parent
d1810a1c5a
commit
3bdc895818
|
|
@ -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);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue