aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/linkage2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/linkage2.cpp')
-rw-r--r--test/SemaCXX/linkage2.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/linkage2.cpp b/test/SemaCXX/linkage2.cpp
index 8a91ca4960..ddf4064215 100644
--- a/test/SemaCXX/linkage2.cpp
+++ b/test/SemaCXX/linkage2.cpp
@@ -147,3 +147,8 @@ namespace test14 {
static void a(void) {} // expected-error {{static declaration of 'a' follows non-static declaration}}
}
}
+
+namespace test15 {
+ const int a = 5; // expected-note {{previous definition is here}}
+ static const int a; // expected-error {{redefinition of 'a'}}
+}