forked from OSchip/llvm-project
28 lines
429 B
C++
28 lines
429 B
C++
// RUN: clang-cc -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);
|
|
}
|
|
|
|
extern "C" int foo;
|
|
extern "C" int foo;
|
|
|
|
extern "C" const int bar;
|
|
extern "C" int const bar;
|
|
|
|
// <rdar://problem/6895431>
|
|
extern "C" struct bar d;
|
|
extern struct bar e;
|