[cfe-commits] r61737 - /cfe/trunk/test/SemaCXX/linkage-spec.cpp
Douglas Gregor
dgregor at apple.com
Mon Jan 5 11:50:09 PST 2009
Author: dgregor
Date: Mon Jan 5 13:50:09 2009
New Revision: 61737
URL: http://llvm.org/viewvc/llvm-project?rev=61737&view=rev
Log:
Add forgotten test case for linkage specifications
Added:
cfe/trunk/test/SemaCXX/linkage-spec.cpp
Added: cfe/trunk/test/SemaCXX/linkage-spec.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/linkage-spec.cpp?rev=61737&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/linkage-spec.cpp (added)
+++ cfe/trunk/test/SemaCXX/linkage-spec.cpp Mon Jan 5 13:50:09 2009
@@ -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);
+}
More information about the cfe-commits
mailing list