blob: 6f25da0cd6abe1f17b17aa8361c46b17b408e708 [file] [log] [blame]
Douglas Gregor3bdc8952009-01-05 19:50:09 +00001// RUN: clang -fsyntax-only -verify %s
2extern "C" {
3 extern "C" void f(int);
4}
5
6extern "C++" {
7 extern "C++" int& g(int);
8 float& g();
9}
10double& g(double);
11
12void test(int x, double d) {
13 f(x);
14 float &f1 = g();
15 int& i1 = g(x);
16 double& d1 = g(d);
17}
Douglas Gregor8d973112009-01-07 02:48:43 +000018
19extern "C" int foo;
20extern "C" int foo;
21
22extern "C" const int bar;
23extern "C" int const bar;