1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 extern "C" void f(int);
7 extern "C++" int& g(int);
12 void test(int x, double d) {
22 extern "C" const int bar;
23 extern "C" int const bar;
25 // <rdar://problem/6895431>
26 extern "C" struct bar d;
32 int foo(int x) { return x; }
39 extern "C" void func(void);
41 using namespace pr5430;
42 extern "C" void pr5430::func(void) { }
59 extern "C" typedef int (*PutcFunc_t)(int);
63 extern "C" void pr7859_a(int) {} // expected-note {{previous definition}}
64 extern "C" void pr7859_a(int) {} // expected-error {{redefinition}}
66 extern "C" void pr7859_b() {} // expected-note {{previous definition}}
67 extern "C" void pr7859_b(int) {} // expected-error {{conflicting}}
69 extern "C" void pr7859_c(short) {} // expected-note {{previous definition}}
70 extern "C" void pr7859_c(int) {} // expected-error {{conflicting}}
72 // <rdar://problem/8318976>
82 extern "C++" template <class T> int pr7754(T param);
88 extern "C++" using N::value;
91 extern "C" const char *Version_string = "2.9";
95 typedef struct _ArtsSink ArtsSink;
100 int arts_sink_get_type()
102 return sizeof(ArtsSink);