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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCXX/linkage2.cpp b/test/SemaCXX/linkage2.cpp
index ccf32008f1..f6561b9f12 100644
--- a/test/SemaCXX/linkage2.cpp
+++ b/test/SemaCXX/linkage2.cpp
@@ -11,3 +11,10 @@ namespace test1 {
void f(); // expected-error {{declaration of 'f' has a different language linkage}}
}
}
+
+extern "C" {
+ static void test2_f() { // expected-note {{previous definition is here}}
+ }
+ static void test2_f(int x) { // expected-error {{conflicting types for 'test2_f'}}
+ }
+}