blob: 864953e9f9c2fb320fcbcfb0fb0d3c0abc389963 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -verify %s
Douglas Gregor6c6fce02009-01-05 19:50:09 +00002extern "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 Gregor17a9b9e2009-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;
Anders Carlsson425bfde2009-05-16 22:05:23 +000024
25// <rdar://problem/6895431>
26extern "C" struct bar d;
27extern struct bar e;