about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-08-23 04:24:35 +0000
committerbors <bors@rust-lang.org>2015-08-23 04:24:35 +0000
commite617a17369ef403268adcebc5e3e32a0bb5cf04c (patch)
treed05af7c754c86c6dd48bd4738d01df06cd390ea2 /src/test/rustdoc
parent054b7b766cd9624cdce1f09b279331d26e05f30e (diff)
parent90ed188c148181434e1055b9256107917a0c98eb (diff)
Auto merge of #27919 - Eljay:doc-varargs, r=alexcrichton
Fixes #27876.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/variadic.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/rustdoc/variadic.rs b/src/test/rustdoc/variadic.rs
new file mode 100644
index 00000000000..1b60c2a334f
--- /dev/null
+++ b/src/test/rustdoc/variadic.rs
@@ -0,0 +1,14 @@
+// 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.
+
+extern "C" {
+    // @has variadic/fn.foo.html //pre 'pub unsafe extern fn foo(x: i32, ...)'
+    pub fn foo(x: i32, ...);
+}