about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2015-10-06 17:39:49 +0300
committerSimonas Kazlauskas <git@kazlauskas.me>2015-10-07 12:12:13 +0300
commitd5dfa87f4deaddb32ff16f2dd0cda1566edb56cb (patch)
tree8c7ffc2db2a94f1ac37afd41b44ecc439fe227f6 /src
parent2f60768e840fd186ccd7812e95dd6e46a54bc432 (diff)
downloadrust-d5dfa87f4deaddb32ff16f2dd0cda1566edb56cb.tar.gz
rust-d5dfa87f4deaddb32ff16f2dd0cda1566edb56cb.zip
Add a test for #16403
Diffstat (limited to 'src')
-rw-r--r--src/test/compile-fail/dupe-symbols-8.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/compile-fail/dupe-symbols-8.rs b/src/test/compile-fail/dupe-symbols-8.rs
new file mode 100644
index 00000000000..3c0e545e193
--- /dev/null
+++ b/src/test/compile-fail/dupe-symbols-8.rs
@@ -0,0 +1,23 @@
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+//
+// error-pattern:already defined
+
+
+#![allow(warnings)]
+
+fn main() {
+    {
+        extern fn fail() {}
+    }
+    {
+        extern fn fail() {}
+    }
+}