Skip to content

Commit 760a109

Browse files
2over12sylvestre
authored andcommitted
add clang -fplugin=x regression test
1 parent 6349d52 commit 760a109

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/compiler/clang.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,17 @@ mod test {
989989
);
990990
}
991991

992+
#[test]
993+
fn test_parse_fplugin_concatenated() {
994+
let a = parses!("-c", "foo.c", "-o", "foo.o", "-fplugin=plugin.so");
995+
println!("A {:#?}", a);
996+
assert_eq!(ovec!["-fplugin", "plugin.so"], a.common_args);
997+
assert_eq!(
998+
ovec![std::env::current_dir().unwrap().join("plugin.so")],
999+
a.extra_hash_files
1000+
);
1001+
}
1002+
9921003
#[test]
9931004
fn test_parse_fsanitize_blacklist() {
9941005
let a = parses!(

0 commit comments

Comments
 (0)