gccrs: Add test

gcc/testsuite/ChangeLog:

	* rust/compile/variadic.rs: New test.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
This commit is contained in:
Owen Avery
2023-02-13 11:29:07 -05:00
committed by Arthur Cohen
parent a9d72ef2d0
commit 8a9886a85e

View File

@@ -0,0 +1,8 @@
extern "C" {
fn printf(s: *const i8, ...);
}
fn main() {
// { dg-error "expected .c_int. variadic argument" "" { target *-*-* } .+1 }
printf("%d\n" as *const str as *const i8, 1i8);
}