diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-06 12:01:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-06 12:01:02 +0100 |
| commit | fb87e7ceed416f59196619df322710dfe5ba9cb3 (patch) | |
| tree | 1c550ea00a6edd72346eab1cb009d90946ac05ac /src/test/ui/c-variadic | |
| parent | 4d0b567efb3407af5bd9c7452ddec193f9792c56 (diff) | |
| parent | bbb8bde98939db872e2b6092c0bf0c97f23e9da2 (diff) | |
| download | rust-fb87e7ceed416f59196619df322710dfe5ba9cb3.tar.gz rust-fb87e7ceed416f59196619df322710dfe5ba9cb3.zip | |
Rollup merge of #92360 - jackh726:param-heuristics-1, r=davidtwco
Some cleanups around check_argument_types Split out in ways from my rebase/continuation of #71827 Commits are mostly self-explanatory and these changes should be fairly straightforward
Diffstat (limited to 'src/test/ui/c-variadic')
| -rw-r--r-- | src/test/ui/c-variadic/variadic-unreachable-arg-error.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/c-variadic/variadic-unreachable-arg-error.rs b/src/test/ui/c-variadic/variadic-unreachable-arg-error.rs new file mode 100644 index 00000000000..f60f6f3e808 --- /dev/null +++ b/src/test/ui/c-variadic/variadic-unreachable-arg-error.rs @@ -0,0 +1,14 @@ +// check-pass + +#![feature(c_variadic)] + +extern "C" { + fn foo(f: isize, x: u8, ...); +} + +fn main() { + unsafe { + // FIXME: Ideally we could give an unreachable warning + foo(1, loop {}, 1usize); + } +} |
