@@ -237,6 +237,7 @@ counted_array!(pub static ARGS: [ArgInfo<gcc::ArgData>; _] = [
237237 flag!( "-gcodeview" , PassThroughFlag ) ,
238238 take_arg!( "-include-pch" , PathBuf , CanBeSeparated , PreprocessorArgumentPath ) ,
239239 take_arg!( "-load" , PathBuf , Separated , ExtraHashFile ) ,
240+ flag!( "-mconstructor-aliases" , PassThroughFlag ) ,
240241 take_arg!( "-mllvm" , OsString , Separated , PassThrough ) ,
241242 flag!( "-no-opaque-pointers" , PreprocessorArgumentFlag ) ,
242243 take_arg!( "-plugin-arg" , OsString , Concatenated ( '-' ) , PassThrough ) ,
@@ -897,6 +898,19 @@ mod test {
897898 assert_eq ! ( ovec![ "-Xclang" , "-fuse-ctor-homing" ] , a. common_args) ;
898899 }
899900
901+ #[ test]
902+ fn test_parse_xclang_mconstructor_aliases_all ( ) {
903+ let a = parses ! (
904+ "-c" ,
905+ "foo.c" ,
906+ "-o" ,
907+ "foo.o" ,
908+ "-Xclang" ,
909+ "-mconstructor-aliases"
910+ ) ;
911+ assert_eq ! ( ovec![ "-Xclang" , "-mconstructor-aliases" ] , a. common_args) ;
912+ }
913+
900914 #[ test]
901915 fn test_parse_fplugin ( ) {
902916 let a = parses ! ( "-c" , "foo.c" , "-o" , "foo.o" , "-fplugin" , "plugin.so" ) ;
0 commit comments