| // { dg-additional-options "-frust-compat-version=1.90 -frust-cfg=A=\"foo\"" } | |
| // { dg-output "wildcard\r*\n" } | |
| #![feature(no_core)] | |
| #![no_core] | |
| extern "C" { | |
| fn printf(s: *const i8, ...); | |
| } | |
| fn main() -> i32 { | |
| cfg_select! { | |
| A = "bar" => { | |
| unsafe { | |
| let a = "none\n\0"; | |
| printf(a as *const str as *const i8); | |
| } | |
| }, | |
| _ => { | |
| unsafe { | |
| let a = "wildcard\n\0"; | |
| printf(a as *const str as *const i8); | |
| } | |
| } | |
| } | |
| return 0; | |
| } |