Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/abi/anon-extern-mod.rs

13 lines
194 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
rustdoc: Replace no-pretty-expanded with pretty-expanded Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-22 13:13:15 -07:00
Fix rust_test_helpers linkage.
2016-11-23 16:09:51 -08:00
#[link(name = "rust_test_helpers", kind = "static")]
Update tests for extern block linting
2020-09-01 17:12:52 -04:00
extern "C" {
Remove libc from rust_get_test_int uses
2024-04-15 23:46:27 -04:00
fn rust_get_test_int() -> isize;
Allow extern mods to be anonymous extern mod { f(); } is now allowed, and puts f in the enclosing scope. (Requires a link_name attribute to be really useful...)
2012-08-29 12:22:05 -07:00
}
check-fast fallout from removing export, r=burningtree
2013-02-01 19:43:17 -08:00
pub fn main() {
librustc: Make C functions unsafe
2013-01-23 16:29:31 -08:00
unsafe {
test: Use a test extern in various foreign fn tests
2013-07-30 20:58:55 -07:00
let _ = rust_get_test_int();
librustc: Make C functions unsafe
2013-01-23 16:29:31 -08:00
}
rustc: "extern mod { ... }" should be written "extern { ... }" instead
2012-08-30 17:09:04 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3279ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API