aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-04 16:43:41 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-04 16:43:41 +0000
commitba2bfa07cbcb088e3afc5565a3b301a7873771a3 (patch)
treeeca56e0dacb92c09d1c5791f093d503e51483441 /test/SemaCXX
parent32d2a6528c395e52914df51f25af13cafaace8dd (diff)
Fix a recent linkage regression.
Now that we don't have a semantic storage class, use the linkage. Thanks to Bruce Stephens for reporting this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX')
-rw-r--r--test/SemaCXX/linkage2.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/linkage2.cpp b/test/SemaCXX/linkage2.cpp
index 94ac25c99d..d1aee4e55d 100644
--- a/test/SemaCXX/linkage2.cpp
+++ b/test/SemaCXX/linkage2.cpp
@@ -134,3 +134,9 @@ namespace test12 {
extern const int n;
}
}
+
+namespace test13 {
+ static void a(void);
+ extern void a();
+ static void a(void) {}
+}