From: Douglas Gregor Date: Mon, 5 Jan 2009 19:50:09 +0000 (+0000) Subject: Add forgotten test case for linkage specifications X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c6fce03ea12b7b8e812fa1b24cfe5aa8705ceca;p=clang Add forgotten test case for linkage specifications git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61737 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/linkage-spec.cpp b/test/SemaCXX/linkage-spec.cpp new file mode 100644 index 0000000000..80d95fb222 --- /dev/null +++ b/test/SemaCXX/linkage-spec.cpp @@ -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); +}