diff --git a/clang/test/3C/b10_allsafepointerstruct.c b/clang/test/3C/b_tests/b10_allsafepointerstruct.c similarity index 100% rename from clang/test/3C/b10_allsafepointerstruct.c rename to clang/test/3C/b_tests/b10_allsafepointerstruct.c diff --git a/clang/test/3C/b11_calleestructnp.c b/clang/test/3C/b_tests/b11_calleestructnp.c similarity index 100% rename from clang/test/3C/b11_calleestructnp.c rename to clang/test/3C/b_tests/b11_calleestructnp.c diff --git a/clang/test/3C/b12_callerstructnp.c b/clang/test/3C/b_tests/b12_callerstructnp.c similarity index 100% rename from clang/test/3C/b12_callerstructnp.c rename to clang/test/3C/b_tests/b12_callerstructnp.c diff --git a/clang/test/3C/b13_calleestructp.c b/clang/test/3C/b_tests/b13_calleestructp.c similarity index 100% rename from clang/test/3C/b13_calleestructp.c rename to clang/test/3C/b_tests/b13_calleestructp.c diff --git a/clang/test/3C/b14_callerstructp.c b/clang/test/3C/b_tests/b14_callerstructp.c similarity index 100% rename from clang/test/3C/b14_callerstructp.c rename to clang/test/3C/b_tests/b14_callerstructp.c diff --git a/clang/test/3C/b15_calleepointerstruct.c b/clang/test/3C/b_tests/b15_calleepointerstruct.c similarity index 100% rename from clang/test/3C/b15_calleepointerstruct.c rename to clang/test/3C/b_tests/b15_calleepointerstruct.c diff --git a/clang/test/3C/b16_callerpointerstruct.c b/clang/test/3C/b_tests/b16_callerpointerstruct.c similarity index 100% rename from clang/test/3C/b16_callerpointerstruct.c rename to clang/test/3C/b_tests/b16_callerpointerstruct.c diff --git a/clang/test/3C/b17_bothstructnp.c b/clang/test/3C/b_tests/b17_bothstructnp.c similarity index 100% rename from clang/test/3C/b17_bothstructnp.c rename to clang/test/3C/b_tests/b17_bothstructnp.c diff --git a/clang/test/3C/b18_bothstructp.c b/clang/test/3C/b_tests/b18_bothstructp.c similarity index 100% rename from clang/test/3C/b18_bothstructp.c rename to clang/test/3C/b_tests/b18_bothstructp.c diff --git a/clang/test/3C/b19_bothpointerstruct.c b/clang/test/3C/b_tests/b19_bothpointerstruct.c similarity index 100% rename from clang/test/3C/b19_bothpointerstruct.c rename to clang/test/3C/b_tests/b19_bothpointerstruct.c diff --git a/clang/test/3C/b1_allsafe.c b/clang/test/3C/b_tests/b1_allsafe.c similarity index 100% rename from clang/test/3C/b1_allsafe.c rename to clang/test/3C/b_tests/b1_allsafe.c diff --git a/clang/test/3C/b20_allsafepointerstructproto.c b/clang/test/3C/b_tests/b20_allsafepointerstructproto.c similarity index 100% rename from clang/test/3C/b20_allsafepointerstructproto.c rename to clang/test/3C/b_tests/b20_allsafepointerstructproto.c diff --git a/clang/test/3C/b21_calleepointerstructproto.c b/clang/test/3C/b_tests/b21_calleepointerstructproto.c similarity index 100% rename from clang/test/3C/b21_calleepointerstructproto.c rename to clang/test/3C/b_tests/b21_calleepointerstructproto.c diff --git a/clang/test/3C/b22_callerpointerstructproto.c b/clang/test/3C/b_tests/b22_callerpointerstructproto.c similarity index 100% rename from clang/test/3C/b22_callerpointerstructproto.c rename to clang/test/3C/b_tests/b22_callerpointerstructproto.c diff --git a/clang/test/3C/b23_explicitunsafecast.c b/clang/test/3C/b_tests/b23_explicitunsafecast.c similarity index 100% rename from clang/test/3C/b23_explicitunsafecast.c rename to clang/test/3C/b_tests/b23_explicitunsafecast.c diff --git a/clang/test/3C/b23_retswitchexplicit.c b/clang/test/3C/b_tests/b23_retswitchexplicit.c similarity index 100% rename from clang/test/3C/b23_retswitchexplicit.c rename to clang/test/3C/b_tests/b23_retswitchexplicit.c diff --git a/clang/test/3C/b24_implicitunsafecast.c b/clang/test/3C/b_tests/b24_implicitunsafecast.c similarity index 100% rename from clang/test/3C/b24_implicitunsafecast.c rename to clang/test/3C/b_tests/b24_implicitunsafecast.c diff --git a/clang/test/3C/b24_retswitchimplicit.c b/clang/test/3C/b_tests/b24_retswitchimplicit.c similarity index 100% rename from clang/test/3C/b24_retswitchimplicit.c rename to clang/test/3C/b_tests/b24_retswitchimplicit.c diff --git a/clang/test/3C/b25_castprotosafe.c b/clang/test/3C/b_tests/b25_castprotosafe.c similarity index 100% rename from clang/test/3C/b25_castprotosafe.c rename to clang/test/3C/b_tests/b25_castprotosafe.c diff --git a/clang/test/3C/b26_castprotounsafe.c b/clang/test/3C/b_tests/b26_castprotounsafe.c similarity index 100% rename from clang/test/3C/b26_castprotounsafe.c rename to clang/test/3C/b_tests/b26_castprotounsafe.c diff --git a/clang/test/3C/b26_castprotounsafeimplicit.c b/clang/test/3C/b_tests/b26_castprotounsafeimplicit.c similarity index 100% rename from clang/test/3C/b26_castprotounsafeimplicit.c rename to clang/test/3C/b_tests/b26_castprotounsafeimplicit.c diff --git a/clang/test/3C/b26_castprotounsafeimplicitretswitch.c b/clang/test/3C/b_tests/b26_castprotounsafeimplicitretswitch.c similarity index 100% rename from clang/test/3C/b26_castprotounsafeimplicitretswitch.c rename to clang/test/3C/b_tests/b26_castprotounsafeimplicitretswitch.c diff --git a/clang/test/3C/b27_structcastsafe.c b/clang/test/3C/b_tests/b27_structcastsafe.c similarity index 100% rename from clang/test/3C/b27_structcastsafe.c rename to clang/test/3C/b_tests/b27_structcastsafe.c diff --git a/clang/test/3C/b28_structcastexplicit.c b/clang/test/3C/b_tests/b28_structcastexplicit.c similarity index 100% rename from clang/test/3C/b28_structcastexplicit.c rename to clang/test/3C/b_tests/b28_structcastexplicit.c diff --git a/clang/test/3C/b28_structcastimplicit.c b/clang/test/3C/b_tests/b28_structcastimplicit.c similarity index 100% rename from clang/test/3C/b28_structcastimplicit.c rename to clang/test/3C/b_tests/b28_structcastimplicit.c diff --git a/clang/test/3C/b28_structimplicitretcast.c b/clang/test/3C/b_tests/b28_structimplicitretcast.c similarity index 100% rename from clang/test/3C/b28_structimplicitretcast.c rename to clang/test/3C/b_tests/b28_structimplicitretcast.c diff --git a/clang/test/3C/b29_structprotocastsafe.c b/clang/test/3C/b_tests/b29_structprotocastsafe.c similarity index 100% rename from clang/test/3C/b29_structprotocastsafe.c rename to clang/test/3C/b_tests/b29_structprotocastsafe.c diff --git a/clang/test/3C/b29_structprotocastsafeuseunsafe.c b/clang/test/3C/b_tests/b29_structprotocastsafeuseunsafe.c similarity index 100% rename from clang/test/3C/b29_structprotocastsafeuseunsafe.c rename to clang/test/3C/b_tests/b29_structprotocastsafeuseunsafe.c diff --git a/clang/test/3C/b2_calleeunsafe.c b/clang/test/3C/b_tests/b2_calleeunsafe.c similarity index 100% rename from clang/test/3C/b2_calleeunsafe.c rename to clang/test/3C/b_tests/b2_calleeunsafe.c diff --git a/clang/test/3C/b30_structprotocastexplicitunsafeuseunsafe.c b/clang/test/3C/b_tests/b30_structprotocastexplicitunsafeuseunsafe.c similarity index 100% rename from clang/test/3C/b30_structprotocastexplicitunsafeuseunsafe.c rename to clang/test/3C/b_tests/b30_structprotocastexplicitunsafeuseunsafe.c diff --git a/clang/test/3C/b30_structprotocastimplicitunsafeuseunsafe.c b/clang/test/3C/b_tests/b30_structprotocastimplicitunsafeuseunsafe.c similarity index 100% rename from clang/test/3C/b30_structprotocastimplicitunsafeuseunsafe.c rename to clang/test/3C/b_tests/b30_structprotocastimplicitunsafeuseunsafe.c diff --git a/clang/test/3C/b30_structprotocastunsafeexplicit.c b/clang/test/3C/b_tests/b30_structprotocastunsafeexplicit.c similarity index 100% rename from clang/test/3C/b30_structprotocastunsafeexplicit.c rename to clang/test/3C/b_tests/b30_structprotocastunsafeexplicit.c diff --git a/clang/test/3C/b30_structprotocastunsafeimplicit.c b/clang/test/3C/b_tests/b30_structprotocastunsafeimplicit.c similarity index 100% rename from clang/test/3C/b30_structprotocastunsafeimplicit.c rename to clang/test/3C/b_tests/b30_structprotocastunsafeimplicit.c diff --git a/clang/test/3C/b30_structprotocastunsafeimplicitretswitch.c b/clang/test/3C/b_tests/b30_structprotocastunsafeimplicitretswitch.c similarity index 100% rename from clang/test/3C/b30_structprotocastunsafeimplicitretswitch.c rename to clang/test/3C/b_tests/b30_structprotocastunsafeimplicitretswitch.c diff --git a/clang/test/3C/b30_structprotoconflict.c b/clang/test/3C/b_tests/b30_structprotoconflict.c similarity index 100% rename from clang/test/3C/b30_structprotoconflict.c rename to clang/test/3C/b_tests/b30_structprotoconflict.c diff --git a/clang/test/3C/b30_structprotoconflictbodyconvert.c b/clang/test/3C/b_tests/b30_structprotoconflictbodyconvert.c similarity index 100% rename from clang/test/3C/b30_structprotoconflictbodyconvert.c rename to clang/test/3C/b_tests/b30_structprotoconflictbodyconvert.c diff --git a/clang/test/3C/b3_onecallerunsafe.c b/clang/test/3C/b_tests/b3_onecallerunsafe.c similarity index 100% rename from clang/test/3C/b3_onecallerunsafe.c rename to clang/test/3C/b_tests/b3_onecallerunsafe.c diff --git a/clang/test/3C/b4_bothunsafe.c b/clang/test/3C/b_tests/b4_bothunsafe.c similarity index 100% rename from clang/test/3C/b4_bothunsafe.c rename to clang/test/3C/b_tests/b4_bothunsafe.c diff --git a/clang/test/3C/b5_calleeunsafeproto.c b/clang/test/3C/b_tests/b5_calleeunsafeproto.c similarity index 100% rename from clang/test/3C/b5_calleeunsafeproto.c rename to clang/test/3C/b_tests/b5_calleeunsafeproto.c diff --git a/clang/test/3C/b6_callerunsafeproto.c b/clang/test/3C/b_tests/b6_callerunsafeproto.c similarity index 100% rename from clang/test/3C/b6_callerunsafeproto.c rename to clang/test/3C/b_tests/b6_callerunsafeproto.c diff --git a/clang/test/3C/b7_allsafeproto.c b/clang/test/3C/b_tests/b7_allsafeproto.c similarity index 100% rename from clang/test/3C/b7_allsafeproto.c rename to clang/test/3C/b_tests/b7_allsafeproto.c diff --git a/clang/test/3C/b8_allsafestructnp.c b/clang/test/3C/b_tests/b8_allsafestructnp.c similarity index 100% rename from clang/test/3C/b8_allsafestructnp.c rename to clang/test/3C/b_tests/b8_allsafestructnp.c diff --git a/clang/test/3C/b9_allsafestructp.c b/clang/test/3C/b_tests/b9_allsafestructp.c similarity index 100% rename from clang/test/3C/b9_allsafestructp.c rename to clang/test/3C/b_tests/b9_allsafestructp.c diff --git a/clang/test/3C/find_bin.py b/clang/test/3C/find_bin.py index 7aed52feaacf..f807a1fa6fec 100644 --- a/clang/test/3C/find_bin.py +++ b/clang/test/3C/find_bin.py @@ -21,11 +21,13 @@ def die(msg): llvm_obj_maybe = os.environ.get('LLVM_OBJ') standard_build_dir = '../../../build' if llvm_obj_maybe is not None: - bin_path = llvm_obj_maybe + '/bin/' + # Now that some of the callers of find_bin call `chdir` afterwards, we have + # to make the path absolute here. + bin_path = os.path.abspath(llvm_obj_maybe) + '/bin/' if not os.path.isfile(bin_path + '3c'): die('$LLVM_OBJ is set but the bin directory does not contain 3c.') elif os.path.isdir(standard_build_dir): - bin_path = standard_build_dir + '/bin/' + bin_path = os.path.abspath(standard_build_dir) + '/bin/' if not os.path.isfile(bin_path + '3c'): die('The standard build directory exists but does not contain 3c.') elif lit.util.which('3c') is not None: diff --git a/clang/test/3C/arrboth.c b/clang/test/3C/generated_tests/arrboth.c similarity index 100% rename from clang/test/3C/arrboth.c rename to clang/test/3C/generated_tests/arrboth.c diff --git a/clang/test/3C/arrbothmulti1.c b/clang/test/3C/generated_tests/arrbothmulti1.c similarity index 100% rename from clang/test/3C/arrbothmulti1.c rename to clang/test/3C/generated_tests/arrbothmulti1.c diff --git a/clang/test/3C/arrbothmulti2.c b/clang/test/3C/generated_tests/arrbothmulti2.c similarity index 100% rename from clang/test/3C/arrbothmulti2.c rename to clang/test/3C/generated_tests/arrbothmulti2.c diff --git a/clang/test/3C/arrcallee.c b/clang/test/3C/generated_tests/arrcallee.c similarity index 100% rename from clang/test/3C/arrcallee.c rename to clang/test/3C/generated_tests/arrcallee.c diff --git a/clang/test/3C/arrcalleemulti1.c b/clang/test/3C/generated_tests/arrcalleemulti1.c similarity index 100% rename from clang/test/3C/arrcalleemulti1.c rename to clang/test/3C/generated_tests/arrcalleemulti1.c diff --git a/clang/test/3C/arrcalleemulti2.c b/clang/test/3C/generated_tests/arrcalleemulti2.c similarity index 100% rename from clang/test/3C/arrcalleemulti2.c rename to clang/test/3C/generated_tests/arrcalleemulti2.c diff --git a/clang/test/3C/arrcaller.c b/clang/test/3C/generated_tests/arrcaller.c similarity index 100% rename from clang/test/3C/arrcaller.c rename to clang/test/3C/generated_tests/arrcaller.c diff --git a/clang/test/3C/arrcallermulti1.c b/clang/test/3C/generated_tests/arrcallermulti1.c similarity index 100% rename from clang/test/3C/arrcallermulti1.c rename to clang/test/3C/generated_tests/arrcallermulti1.c diff --git a/clang/test/3C/arrcallermulti2.c b/clang/test/3C/generated_tests/arrcallermulti2.c similarity index 100% rename from clang/test/3C/arrcallermulti2.c rename to clang/test/3C/generated_tests/arrcallermulti2.c diff --git a/clang/test/3C/arrinstructboth.c b/clang/test/3C/generated_tests/arrinstructboth.c similarity index 100% rename from clang/test/3C/arrinstructboth.c rename to clang/test/3C/generated_tests/arrinstructboth.c diff --git a/clang/test/3C/arrinstructbothmulti1.c b/clang/test/3C/generated_tests/arrinstructbothmulti1.c similarity index 100% rename from clang/test/3C/arrinstructbothmulti1.c rename to clang/test/3C/generated_tests/arrinstructbothmulti1.c diff --git a/clang/test/3C/arrinstructbothmulti2.c b/clang/test/3C/generated_tests/arrinstructbothmulti2.c similarity index 100% rename from clang/test/3C/arrinstructbothmulti2.c rename to clang/test/3C/generated_tests/arrinstructbothmulti2.c diff --git a/clang/test/3C/arrinstructcallee.c b/clang/test/3C/generated_tests/arrinstructcallee.c similarity index 100% rename from clang/test/3C/arrinstructcallee.c rename to clang/test/3C/generated_tests/arrinstructcallee.c diff --git a/clang/test/3C/arrinstructcalleemulti1.c b/clang/test/3C/generated_tests/arrinstructcalleemulti1.c similarity index 100% rename from clang/test/3C/arrinstructcalleemulti1.c rename to clang/test/3C/generated_tests/arrinstructcalleemulti1.c diff --git a/clang/test/3C/arrinstructcalleemulti2.c b/clang/test/3C/generated_tests/arrinstructcalleemulti2.c similarity index 100% rename from clang/test/3C/arrinstructcalleemulti2.c rename to clang/test/3C/generated_tests/arrinstructcalleemulti2.c diff --git a/clang/test/3C/arrinstructcaller.c b/clang/test/3C/generated_tests/arrinstructcaller.c similarity index 100% rename from clang/test/3C/arrinstructcaller.c rename to clang/test/3C/generated_tests/arrinstructcaller.c diff --git a/clang/test/3C/arrinstructcallermulti1.c b/clang/test/3C/generated_tests/arrinstructcallermulti1.c similarity index 100% rename from clang/test/3C/arrinstructcallermulti1.c rename to clang/test/3C/generated_tests/arrinstructcallermulti1.c diff --git a/clang/test/3C/arrinstructcallermulti2.c b/clang/test/3C/generated_tests/arrinstructcallermulti2.c similarity index 100% rename from clang/test/3C/arrinstructcallermulti2.c rename to clang/test/3C/generated_tests/arrinstructcallermulti2.c diff --git a/clang/test/3C/arrinstructprotoboth.c b/clang/test/3C/generated_tests/arrinstructprotoboth.c similarity index 100% rename from clang/test/3C/arrinstructprotoboth.c rename to clang/test/3C/generated_tests/arrinstructprotoboth.c diff --git a/clang/test/3C/arrinstructprotocallee.c b/clang/test/3C/generated_tests/arrinstructprotocallee.c similarity index 100% rename from clang/test/3C/arrinstructprotocallee.c rename to clang/test/3C/generated_tests/arrinstructprotocallee.c diff --git a/clang/test/3C/arrinstructprotocaller.c b/clang/test/3C/generated_tests/arrinstructprotocaller.c similarity index 100% rename from clang/test/3C/arrinstructprotocaller.c rename to clang/test/3C/generated_tests/arrinstructprotocaller.c diff --git a/clang/test/3C/arrinstructprotosafe.c b/clang/test/3C/generated_tests/arrinstructprotosafe.c similarity index 100% rename from clang/test/3C/arrinstructprotosafe.c rename to clang/test/3C/generated_tests/arrinstructprotosafe.c diff --git a/clang/test/3C/arrinstructsafe.c b/clang/test/3C/generated_tests/arrinstructsafe.c similarity index 100% rename from clang/test/3C/arrinstructsafe.c rename to clang/test/3C/generated_tests/arrinstructsafe.c diff --git a/clang/test/3C/arrinstructsafemulti1.c b/clang/test/3C/generated_tests/arrinstructsafemulti1.c similarity index 100% rename from clang/test/3C/arrinstructsafemulti1.c rename to clang/test/3C/generated_tests/arrinstructsafemulti1.c diff --git a/clang/test/3C/arrinstructsafemulti2.c b/clang/test/3C/generated_tests/arrinstructsafemulti2.c similarity index 100% rename from clang/test/3C/arrinstructsafemulti2.c rename to clang/test/3C/generated_tests/arrinstructsafemulti2.c diff --git a/clang/test/3C/arrofstructboth.c b/clang/test/3C/generated_tests/arrofstructboth.c similarity index 100% rename from clang/test/3C/arrofstructboth.c rename to clang/test/3C/generated_tests/arrofstructboth.c diff --git a/clang/test/3C/arrofstructbothmulti1.c b/clang/test/3C/generated_tests/arrofstructbothmulti1.c similarity index 100% rename from clang/test/3C/arrofstructbothmulti1.c rename to clang/test/3C/generated_tests/arrofstructbothmulti1.c diff --git a/clang/test/3C/arrofstructbothmulti2.c b/clang/test/3C/generated_tests/arrofstructbothmulti2.c similarity index 100% rename from clang/test/3C/arrofstructbothmulti2.c rename to clang/test/3C/generated_tests/arrofstructbothmulti2.c diff --git a/clang/test/3C/arrofstructcallee.c b/clang/test/3C/generated_tests/arrofstructcallee.c similarity index 100% rename from clang/test/3C/arrofstructcallee.c rename to clang/test/3C/generated_tests/arrofstructcallee.c diff --git a/clang/test/3C/arrofstructcalleemulti1.c b/clang/test/3C/generated_tests/arrofstructcalleemulti1.c similarity index 100% rename from clang/test/3C/arrofstructcalleemulti1.c rename to clang/test/3C/generated_tests/arrofstructcalleemulti1.c diff --git a/clang/test/3C/arrofstructcalleemulti2.c b/clang/test/3C/generated_tests/arrofstructcalleemulti2.c similarity index 100% rename from clang/test/3C/arrofstructcalleemulti2.c rename to clang/test/3C/generated_tests/arrofstructcalleemulti2.c diff --git a/clang/test/3C/arrofstructcaller.c b/clang/test/3C/generated_tests/arrofstructcaller.c similarity index 100% rename from clang/test/3C/arrofstructcaller.c rename to clang/test/3C/generated_tests/arrofstructcaller.c diff --git a/clang/test/3C/arrofstructcallermulti1.c b/clang/test/3C/generated_tests/arrofstructcallermulti1.c similarity index 100% rename from clang/test/3C/arrofstructcallermulti1.c rename to clang/test/3C/generated_tests/arrofstructcallermulti1.c diff --git a/clang/test/3C/arrofstructcallermulti2.c b/clang/test/3C/generated_tests/arrofstructcallermulti2.c similarity index 100% rename from clang/test/3C/arrofstructcallermulti2.c rename to clang/test/3C/generated_tests/arrofstructcallermulti2.c diff --git a/clang/test/3C/arrofstructprotoboth.c b/clang/test/3C/generated_tests/arrofstructprotoboth.c similarity index 100% rename from clang/test/3C/arrofstructprotoboth.c rename to clang/test/3C/generated_tests/arrofstructprotoboth.c diff --git a/clang/test/3C/arrofstructprotocallee.c b/clang/test/3C/generated_tests/arrofstructprotocallee.c similarity index 100% rename from clang/test/3C/arrofstructprotocallee.c rename to clang/test/3C/generated_tests/arrofstructprotocallee.c diff --git a/clang/test/3C/arrofstructprotocaller.c b/clang/test/3C/generated_tests/arrofstructprotocaller.c similarity index 100% rename from clang/test/3C/arrofstructprotocaller.c rename to clang/test/3C/generated_tests/arrofstructprotocaller.c diff --git a/clang/test/3C/arrofstructprotosafe.c b/clang/test/3C/generated_tests/arrofstructprotosafe.c similarity index 100% rename from clang/test/3C/arrofstructprotosafe.c rename to clang/test/3C/generated_tests/arrofstructprotosafe.c diff --git a/clang/test/3C/arrofstructsafe.c b/clang/test/3C/generated_tests/arrofstructsafe.c similarity index 100% rename from clang/test/3C/arrofstructsafe.c rename to clang/test/3C/generated_tests/arrofstructsafe.c diff --git a/clang/test/3C/arrofstructsafemulti1.c b/clang/test/3C/generated_tests/arrofstructsafemulti1.c similarity index 100% rename from clang/test/3C/arrofstructsafemulti1.c rename to clang/test/3C/generated_tests/arrofstructsafemulti1.c diff --git a/clang/test/3C/arrofstructsafemulti2.c b/clang/test/3C/generated_tests/arrofstructsafemulti2.c similarity index 100% rename from clang/test/3C/arrofstructsafemulti2.c rename to clang/test/3C/generated_tests/arrofstructsafemulti2.c diff --git a/clang/test/3C/arrprotoboth.c b/clang/test/3C/generated_tests/arrprotoboth.c similarity index 100% rename from clang/test/3C/arrprotoboth.c rename to clang/test/3C/generated_tests/arrprotoboth.c diff --git a/clang/test/3C/arrprotocallee.c b/clang/test/3C/generated_tests/arrprotocallee.c similarity index 100% rename from clang/test/3C/arrprotocallee.c rename to clang/test/3C/generated_tests/arrprotocallee.c diff --git a/clang/test/3C/arrprotocaller.c b/clang/test/3C/generated_tests/arrprotocaller.c similarity index 100% rename from clang/test/3C/arrprotocaller.c rename to clang/test/3C/generated_tests/arrprotocaller.c diff --git a/clang/test/3C/arrprotosafe.c b/clang/test/3C/generated_tests/arrprotosafe.c similarity index 100% rename from clang/test/3C/arrprotosafe.c rename to clang/test/3C/generated_tests/arrprotosafe.c diff --git a/clang/test/3C/arrsafe.c b/clang/test/3C/generated_tests/arrsafe.c similarity index 100% rename from clang/test/3C/arrsafe.c rename to clang/test/3C/generated_tests/arrsafe.c diff --git a/clang/test/3C/arrsafemulti1.c b/clang/test/3C/generated_tests/arrsafemulti1.c similarity index 100% rename from clang/test/3C/arrsafemulti1.c rename to clang/test/3C/generated_tests/arrsafemulti1.c diff --git a/clang/test/3C/arrsafemulti2.c b/clang/test/3C/generated_tests/arrsafemulti2.c similarity index 100% rename from clang/test/3C/arrsafemulti2.c rename to clang/test/3C/generated_tests/arrsafemulti2.c diff --git a/clang/test/3C/arrstructboth.c b/clang/test/3C/generated_tests/arrstructboth.c similarity index 100% rename from clang/test/3C/arrstructboth.c rename to clang/test/3C/generated_tests/arrstructboth.c diff --git a/clang/test/3C/arrstructbothmulti1.c b/clang/test/3C/generated_tests/arrstructbothmulti1.c similarity index 100% rename from clang/test/3C/arrstructbothmulti1.c rename to clang/test/3C/generated_tests/arrstructbothmulti1.c diff --git a/clang/test/3C/arrstructbothmulti2.c b/clang/test/3C/generated_tests/arrstructbothmulti2.c similarity index 100% rename from clang/test/3C/arrstructbothmulti2.c rename to clang/test/3C/generated_tests/arrstructbothmulti2.c diff --git a/clang/test/3C/arrstructcallee.c b/clang/test/3C/generated_tests/arrstructcallee.c similarity index 100% rename from clang/test/3C/arrstructcallee.c rename to clang/test/3C/generated_tests/arrstructcallee.c diff --git a/clang/test/3C/arrstructcalleemulti1.c b/clang/test/3C/generated_tests/arrstructcalleemulti1.c similarity index 100% rename from clang/test/3C/arrstructcalleemulti1.c rename to clang/test/3C/generated_tests/arrstructcalleemulti1.c diff --git a/clang/test/3C/arrstructcalleemulti2.c b/clang/test/3C/generated_tests/arrstructcalleemulti2.c similarity index 100% rename from clang/test/3C/arrstructcalleemulti2.c rename to clang/test/3C/generated_tests/arrstructcalleemulti2.c diff --git a/clang/test/3C/arrstructcaller.c b/clang/test/3C/generated_tests/arrstructcaller.c similarity index 100% rename from clang/test/3C/arrstructcaller.c rename to clang/test/3C/generated_tests/arrstructcaller.c diff --git a/clang/test/3C/arrstructcallermulti1.c b/clang/test/3C/generated_tests/arrstructcallermulti1.c similarity index 100% rename from clang/test/3C/arrstructcallermulti1.c rename to clang/test/3C/generated_tests/arrstructcallermulti1.c diff --git a/clang/test/3C/arrstructcallermulti2.c b/clang/test/3C/generated_tests/arrstructcallermulti2.c similarity index 100% rename from clang/test/3C/arrstructcallermulti2.c rename to clang/test/3C/generated_tests/arrstructcallermulti2.c diff --git a/clang/test/3C/arrstructprotoboth.c b/clang/test/3C/generated_tests/arrstructprotoboth.c similarity index 100% rename from clang/test/3C/arrstructprotoboth.c rename to clang/test/3C/generated_tests/arrstructprotoboth.c diff --git a/clang/test/3C/arrstructprotocallee.c b/clang/test/3C/generated_tests/arrstructprotocallee.c similarity index 100% rename from clang/test/3C/arrstructprotocallee.c rename to clang/test/3C/generated_tests/arrstructprotocallee.c diff --git a/clang/test/3C/arrstructprotocaller.c b/clang/test/3C/generated_tests/arrstructprotocaller.c similarity index 100% rename from clang/test/3C/arrstructprotocaller.c rename to clang/test/3C/generated_tests/arrstructprotocaller.c diff --git a/clang/test/3C/arrstructprotosafe.c b/clang/test/3C/generated_tests/arrstructprotosafe.c similarity index 100% rename from clang/test/3C/arrstructprotosafe.c rename to clang/test/3C/generated_tests/arrstructprotosafe.c diff --git a/clang/test/3C/arrstructsafe.c b/clang/test/3C/generated_tests/arrstructsafe.c similarity index 100% rename from clang/test/3C/arrstructsafe.c rename to clang/test/3C/generated_tests/arrstructsafe.c diff --git a/clang/test/3C/arrstructsafemulti1.c b/clang/test/3C/generated_tests/arrstructsafemulti1.c similarity index 100% rename from clang/test/3C/arrstructsafemulti1.c rename to clang/test/3C/generated_tests/arrstructsafemulti1.c diff --git a/clang/test/3C/arrstructsafemulti2.c b/clang/test/3C/generated_tests/arrstructsafemulti2.c similarity index 100% rename from clang/test/3C/arrstructsafemulti2.c rename to clang/test/3C/generated_tests/arrstructsafemulti2.c diff --git a/clang/test/3C/fptrarrboth.c b/clang/test/3C/generated_tests/fptrarrboth.c similarity index 100% rename from clang/test/3C/fptrarrboth.c rename to clang/test/3C/generated_tests/fptrarrboth.c diff --git a/clang/test/3C/fptrarrbothmulti1.c b/clang/test/3C/generated_tests/fptrarrbothmulti1.c similarity index 100% rename from clang/test/3C/fptrarrbothmulti1.c rename to clang/test/3C/generated_tests/fptrarrbothmulti1.c diff --git a/clang/test/3C/fptrarrbothmulti2.c b/clang/test/3C/generated_tests/fptrarrbothmulti2.c similarity index 100% rename from clang/test/3C/fptrarrbothmulti2.c rename to clang/test/3C/generated_tests/fptrarrbothmulti2.c diff --git a/clang/test/3C/fptrarrcallee.c b/clang/test/3C/generated_tests/fptrarrcallee.c similarity index 100% rename from clang/test/3C/fptrarrcallee.c rename to clang/test/3C/generated_tests/fptrarrcallee.c diff --git a/clang/test/3C/fptrarrcalleemulti1.c b/clang/test/3C/generated_tests/fptrarrcalleemulti1.c similarity index 100% rename from clang/test/3C/fptrarrcalleemulti1.c rename to clang/test/3C/generated_tests/fptrarrcalleemulti1.c diff --git a/clang/test/3C/fptrarrcalleemulti2.c b/clang/test/3C/generated_tests/fptrarrcalleemulti2.c similarity index 100% rename from clang/test/3C/fptrarrcalleemulti2.c rename to clang/test/3C/generated_tests/fptrarrcalleemulti2.c diff --git a/clang/test/3C/fptrarrcaller.c b/clang/test/3C/generated_tests/fptrarrcaller.c similarity index 100% rename from clang/test/3C/fptrarrcaller.c rename to clang/test/3C/generated_tests/fptrarrcaller.c diff --git a/clang/test/3C/fptrarrcallermulti1.c b/clang/test/3C/generated_tests/fptrarrcallermulti1.c similarity index 100% rename from clang/test/3C/fptrarrcallermulti1.c rename to clang/test/3C/generated_tests/fptrarrcallermulti1.c diff --git a/clang/test/3C/fptrarrcallermulti2.c b/clang/test/3C/generated_tests/fptrarrcallermulti2.c similarity index 100% rename from clang/test/3C/fptrarrcallermulti2.c rename to clang/test/3C/generated_tests/fptrarrcallermulti2.c diff --git a/clang/test/3C/fptrarrinstructboth.c b/clang/test/3C/generated_tests/fptrarrinstructboth.c similarity index 100% rename from clang/test/3C/fptrarrinstructboth.c rename to clang/test/3C/generated_tests/fptrarrinstructboth.c diff --git a/clang/test/3C/fptrarrinstructbothmulti1.c b/clang/test/3C/generated_tests/fptrarrinstructbothmulti1.c similarity index 100% rename from clang/test/3C/fptrarrinstructbothmulti1.c rename to clang/test/3C/generated_tests/fptrarrinstructbothmulti1.c diff --git a/clang/test/3C/fptrarrinstructbothmulti2.c b/clang/test/3C/generated_tests/fptrarrinstructbothmulti2.c similarity index 100% rename from clang/test/3C/fptrarrinstructbothmulti2.c rename to clang/test/3C/generated_tests/fptrarrinstructbothmulti2.c diff --git a/clang/test/3C/fptrarrinstructcallee.c b/clang/test/3C/generated_tests/fptrarrinstructcallee.c similarity index 100% rename from clang/test/3C/fptrarrinstructcallee.c rename to clang/test/3C/generated_tests/fptrarrinstructcallee.c diff --git a/clang/test/3C/fptrarrinstructcalleemulti1.c b/clang/test/3C/generated_tests/fptrarrinstructcalleemulti1.c similarity index 100% rename from clang/test/3C/fptrarrinstructcalleemulti1.c rename to clang/test/3C/generated_tests/fptrarrinstructcalleemulti1.c diff --git a/clang/test/3C/fptrarrinstructcalleemulti2.c b/clang/test/3C/generated_tests/fptrarrinstructcalleemulti2.c similarity index 100% rename from clang/test/3C/fptrarrinstructcalleemulti2.c rename to clang/test/3C/generated_tests/fptrarrinstructcalleemulti2.c diff --git a/clang/test/3C/fptrarrinstructcaller.c b/clang/test/3C/generated_tests/fptrarrinstructcaller.c similarity index 100% rename from clang/test/3C/fptrarrinstructcaller.c rename to clang/test/3C/generated_tests/fptrarrinstructcaller.c diff --git a/clang/test/3C/fptrarrinstructcallermulti1.c b/clang/test/3C/generated_tests/fptrarrinstructcallermulti1.c similarity index 100% rename from clang/test/3C/fptrarrinstructcallermulti1.c rename to clang/test/3C/generated_tests/fptrarrinstructcallermulti1.c diff --git a/clang/test/3C/fptrarrinstructcallermulti2.c b/clang/test/3C/generated_tests/fptrarrinstructcallermulti2.c similarity index 100% rename from clang/test/3C/fptrarrinstructcallermulti2.c rename to clang/test/3C/generated_tests/fptrarrinstructcallermulti2.c diff --git a/clang/test/3C/fptrarrinstructprotoboth.c b/clang/test/3C/generated_tests/fptrarrinstructprotoboth.c similarity index 100% rename from clang/test/3C/fptrarrinstructprotoboth.c rename to clang/test/3C/generated_tests/fptrarrinstructprotoboth.c diff --git a/clang/test/3C/fptrarrinstructprotocallee.c b/clang/test/3C/generated_tests/fptrarrinstructprotocallee.c similarity index 100% rename from clang/test/3C/fptrarrinstructprotocallee.c rename to clang/test/3C/generated_tests/fptrarrinstructprotocallee.c diff --git a/clang/test/3C/fptrarrinstructprotocaller.c b/clang/test/3C/generated_tests/fptrarrinstructprotocaller.c similarity index 100% rename from clang/test/3C/fptrarrinstructprotocaller.c rename to clang/test/3C/generated_tests/fptrarrinstructprotocaller.c diff --git a/clang/test/3C/fptrarrinstructprotosafe.c b/clang/test/3C/generated_tests/fptrarrinstructprotosafe.c similarity index 100% rename from clang/test/3C/fptrarrinstructprotosafe.c rename to clang/test/3C/generated_tests/fptrarrinstructprotosafe.c diff --git a/clang/test/3C/fptrarrinstructsafe.c b/clang/test/3C/generated_tests/fptrarrinstructsafe.c similarity index 100% rename from clang/test/3C/fptrarrinstructsafe.c rename to clang/test/3C/generated_tests/fptrarrinstructsafe.c diff --git a/clang/test/3C/fptrarrinstructsafemulti1.c b/clang/test/3C/generated_tests/fptrarrinstructsafemulti1.c similarity index 100% rename from clang/test/3C/fptrarrinstructsafemulti1.c rename to clang/test/3C/generated_tests/fptrarrinstructsafemulti1.c diff --git a/clang/test/3C/fptrarrinstructsafemulti2.c b/clang/test/3C/generated_tests/fptrarrinstructsafemulti2.c similarity index 100% rename from clang/test/3C/fptrarrinstructsafemulti2.c rename to clang/test/3C/generated_tests/fptrarrinstructsafemulti2.c diff --git a/clang/test/3C/fptrarrprotoboth.c b/clang/test/3C/generated_tests/fptrarrprotoboth.c similarity index 100% rename from clang/test/3C/fptrarrprotoboth.c rename to clang/test/3C/generated_tests/fptrarrprotoboth.c diff --git a/clang/test/3C/fptrarrprotocallee.c b/clang/test/3C/generated_tests/fptrarrprotocallee.c similarity index 100% rename from clang/test/3C/fptrarrprotocallee.c rename to clang/test/3C/generated_tests/fptrarrprotocallee.c diff --git a/clang/test/3C/fptrarrprotocaller.c b/clang/test/3C/generated_tests/fptrarrprotocaller.c similarity index 100% rename from clang/test/3C/fptrarrprotocaller.c rename to clang/test/3C/generated_tests/fptrarrprotocaller.c diff --git a/clang/test/3C/fptrarrprotosafe.c b/clang/test/3C/generated_tests/fptrarrprotosafe.c similarity index 100% rename from clang/test/3C/fptrarrprotosafe.c rename to clang/test/3C/generated_tests/fptrarrprotosafe.c diff --git a/clang/test/3C/fptrarrsafe.c b/clang/test/3C/generated_tests/fptrarrsafe.c similarity index 100% rename from clang/test/3C/fptrarrsafe.c rename to clang/test/3C/generated_tests/fptrarrsafe.c diff --git a/clang/test/3C/fptrarrsafemulti1.c b/clang/test/3C/generated_tests/fptrarrsafemulti1.c similarity index 100% rename from clang/test/3C/fptrarrsafemulti1.c rename to clang/test/3C/generated_tests/fptrarrsafemulti1.c diff --git a/clang/test/3C/fptrarrsafemulti2.c b/clang/test/3C/generated_tests/fptrarrsafemulti2.c similarity index 100% rename from clang/test/3C/fptrarrsafemulti2.c rename to clang/test/3C/generated_tests/fptrarrsafemulti2.c diff --git a/clang/test/3C/fptrarrstructboth.c b/clang/test/3C/generated_tests/fptrarrstructboth.c similarity index 100% rename from clang/test/3C/fptrarrstructboth.c rename to clang/test/3C/generated_tests/fptrarrstructboth.c diff --git a/clang/test/3C/fptrarrstructbothmulti1.c b/clang/test/3C/generated_tests/fptrarrstructbothmulti1.c similarity index 100% rename from clang/test/3C/fptrarrstructbothmulti1.c rename to clang/test/3C/generated_tests/fptrarrstructbothmulti1.c diff --git a/clang/test/3C/fptrarrstructbothmulti2.c b/clang/test/3C/generated_tests/fptrarrstructbothmulti2.c similarity index 100% rename from clang/test/3C/fptrarrstructbothmulti2.c rename to clang/test/3C/generated_tests/fptrarrstructbothmulti2.c diff --git a/clang/test/3C/fptrarrstructcallee.c b/clang/test/3C/generated_tests/fptrarrstructcallee.c similarity index 100% rename from clang/test/3C/fptrarrstructcallee.c rename to clang/test/3C/generated_tests/fptrarrstructcallee.c diff --git a/clang/test/3C/fptrarrstructcalleemulti1.c b/clang/test/3C/generated_tests/fptrarrstructcalleemulti1.c similarity index 100% rename from clang/test/3C/fptrarrstructcalleemulti1.c rename to clang/test/3C/generated_tests/fptrarrstructcalleemulti1.c diff --git a/clang/test/3C/fptrarrstructcalleemulti2.c b/clang/test/3C/generated_tests/fptrarrstructcalleemulti2.c similarity index 100% rename from clang/test/3C/fptrarrstructcalleemulti2.c rename to clang/test/3C/generated_tests/fptrarrstructcalleemulti2.c diff --git a/clang/test/3C/fptrarrstructcaller.c b/clang/test/3C/generated_tests/fptrarrstructcaller.c similarity index 100% rename from clang/test/3C/fptrarrstructcaller.c rename to clang/test/3C/generated_tests/fptrarrstructcaller.c diff --git a/clang/test/3C/fptrarrstructcallermulti1.c b/clang/test/3C/generated_tests/fptrarrstructcallermulti1.c similarity index 100% rename from clang/test/3C/fptrarrstructcallermulti1.c rename to clang/test/3C/generated_tests/fptrarrstructcallermulti1.c diff --git a/clang/test/3C/fptrarrstructcallermulti2.c b/clang/test/3C/generated_tests/fptrarrstructcallermulti2.c similarity index 100% rename from clang/test/3C/fptrarrstructcallermulti2.c rename to clang/test/3C/generated_tests/fptrarrstructcallermulti2.c diff --git a/clang/test/3C/fptrarrstructprotoboth.c b/clang/test/3C/generated_tests/fptrarrstructprotoboth.c similarity index 100% rename from clang/test/3C/fptrarrstructprotoboth.c rename to clang/test/3C/generated_tests/fptrarrstructprotoboth.c diff --git a/clang/test/3C/fptrarrstructprotocallee.c b/clang/test/3C/generated_tests/fptrarrstructprotocallee.c similarity index 100% rename from clang/test/3C/fptrarrstructprotocallee.c rename to clang/test/3C/generated_tests/fptrarrstructprotocallee.c diff --git a/clang/test/3C/fptrarrstructprotocaller.c b/clang/test/3C/generated_tests/fptrarrstructprotocaller.c similarity index 100% rename from clang/test/3C/fptrarrstructprotocaller.c rename to clang/test/3C/generated_tests/fptrarrstructprotocaller.c diff --git a/clang/test/3C/fptrarrstructprotosafe.c b/clang/test/3C/generated_tests/fptrarrstructprotosafe.c similarity index 100% rename from clang/test/3C/fptrarrstructprotosafe.c rename to clang/test/3C/generated_tests/fptrarrstructprotosafe.c diff --git a/clang/test/3C/fptrarrstructsafe.c b/clang/test/3C/generated_tests/fptrarrstructsafe.c similarity index 100% rename from clang/test/3C/fptrarrstructsafe.c rename to clang/test/3C/generated_tests/fptrarrstructsafe.c diff --git a/clang/test/3C/fptrarrstructsafemulti1.c b/clang/test/3C/generated_tests/fptrarrstructsafemulti1.c similarity index 100% rename from clang/test/3C/fptrarrstructsafemulti1.c rename to clang/test/3C/generated_tests/fptrarrstructsafemulti1.c diff --git a/clang/test/3C/fptrarrstructsafemulti2.c b/clang/test/3C/generated_tests/fptrarrstructsafemulti2.c similarity index 100% rename from clang/test/3C/fptrarrstructsafemulti2.c rename to clang/test/3C/generated_tests/fptrarrstructsafemulti2.c diff --git a/clang/test/3C/fptrinstructboth.c b/clang/test/3C/generated_tests/fptrinstructboth.c similarity index 100% rename from clang/test/3C/fptrinstructboth.c rename to clang/test/3C/generated_tests/fptrinstructboth.c diff --git a/clang/test/3C/fptrinstructbothmulti1.c b/clang/test/3C/generated_tests/fptrinstructbothmulti1.c similarity index 100% rename from clang/test/3C/fptrinstructbothmulti1.c rename to clang/test/3C/generated_tests/fptrinstructbothmulti1.c diff --git a/clang/test/3C/fptrinstructbothmulti2.c b/clang/test/3C/generated_tests/fptrinstructbothmulti2.c similarity index 100% rename from clang/test/3C/fptrinstructbothmulti2.c rename to clang/test/3C/generated_tests/fptrinstructbothmulti2.c diff --git a/clang/test/3C/fptrinstructcallee.c b/clang/test/3C/generated_tests/fptrinstructcallee.c similarity index 100% rename from clang/test/3C/fptrinstructcallee.c rename to clang/test/3C/generated_tests/fptrinstructcallee.c diff --git a/clang/test/3C/fptrinstructcalleemulti1.c b/clang/test/3C/generated_tests/fptrinstructcalleemulti1.c similarity index 100% rename from clang/test/3C/fptrinstructcalleemulti1.c rename to clang/test/3C/generated_tests/fptrinstructcalleemulti1.c diff --git a/clang/test/3C/fptrinstructcalleemulti2.c b/clang/test/3C/generated_tests/fptrinstructcalleemulti2.c similarity index 100% rename from clang/test/3C/fptrinstructcalleemulti2.c rename to clang/test/3C/generated_tests/fptrinstructcalleemulti2.c diff --git a/clang/test/3C/fptrinstructcaller.c b/clang/test/3C/generated_tests/fptrinstructcaller.c similarity index 100% rename from clang/test/3C/fptrinstructcaller.c rename to clang/test/3C/generated_tests/fptrinstructcaller.c diff --git a/clang/test/3C/fptrinstructcallermulti1.c b/clang/test/3C/generated_tests/fptrinstructcallermulti1.c similarity index 100% rename from clang/test/3C/fptrinstructcallermulti1.c rename to clang/test/3C/generated_tests/fptrinstructcallermulti1.c diff --git a/clang/test/3C/fptrinstructcallermulti2.c b/clang/test/3C/generated_tests/fptrinstructcallermulti2.c similarity index 100% rename from clang/test/3C/fptrinstructcallermulti2.c rename to clang/test/3C/generated_tests/fptrinstructcallermulti2.c diff --git a/clang/test/3C/fptrinstructprotoboth.c b/clang/test/3C/generated_tests/fptrinstructprotoboth.c similarity index 100% rename from clang/test/3C/fptrinstructprotoboth.c rename to clang/test/3C/generated_tests/fptrinstructprotoboth.c diff --git a/clang/test/3C/fptrinstructprotocallee.c b/clang/test/3C/generated_tests/fptrinstructprotocallee.c similarity index 100% rename from clang/test/3C/fptrinstructprotocallee.c rename to clang/test/3C/generated_tests/fptrinstructprotocallee.c diff --git a/clang/test/3C/fptrinstructprotocaller.c b/clang/test/3C/generated_tests/fptrinstructprotocaller.c similarity index 100% rename from clang/test/3C/fptrinstructprotocaller.c rename to clang/test/3C/generated_tests/fptrinstructprotocaller.c diff --git a/clang/test/3C/fptrinstructprotosafe.c b/clang/test/3C/generated_tests/fptrinstructprotosafe.c similarity index 100% rename from clang/test/3C/fptrinstructprotosafe.c rename to clang/test/3C/generated_tests/fptrinstructprotosafe.c diff --git a/clang/test/3C/fptrinstructsafe.c b/clang/test/3C/generated_tests/fptrinstructsafe.c similarity index 100% rename from clang/test/3C/fptrinstructsafe.c rename to clang/test/3C/generated_tests/fptrinstructsafe.c diff --git a/clang/test/3C/fptrinstructsafemulti1.c b/clang/test/3C/generated_tests/fptrinstructsafemulti1.c similarity index 100% rename from clang/test/3C/fptrinstructsafemulti1.c rename to clang/test/3C/generated_tests/fptrinstructsafemulti1.c diff --git a/clang/test/3C/fptrinstructsafemulti2.c b/clang/test/3C/generated_tests/fptrinstructsafemulti2.c similarity index 100% rename from clang/test/3C/fptrinstructsafemulti2.c rename to clang/test/3C/generated_tests/fptrinstructsafemulti2.c diff --git a/clang/test/3C/fptrsafeboth.c b/clang/test/3C/generated_tests/fptrsafeboth.c similarity index 100% rename from clang/test/3C/fptrsafeboth.c rename to clang/test/3C/generated_tests/fptrsafeboth.c diff --git a/clang/test/3C/fptrsafebothmulti1.c b/clang/test/3C/generated_tests/fptrsafebothmulti1.c similarity index 100% rename from clang/test/3C/fptrsafebothmulti1.c rename to clang/test/3C/generated_tests/fptrsafebothmulti1.c diff --git a/clang/test/3C/fptrsafebothmulti2.c b/clang/test/3C/generated_tests/fptrsafebothmulti2.c similarity index 100% rename from clang/test/3C/fptrsafebothmulti2.c rename to clang/test/3C/generated_tests/fptrsafebothmulti2.c diff --git a/clang/test/3C/fptrsafecallee.c b/clang/test/3C/generated_tests/fptrsafecallee.c similarity index 100% rename from clang/test/3C/fptrsafecallee.c rename to clang/test/3C/generated_tests/fptrsafecallee.c diff --git a/clang/test/3C/fptrsafecalleemulti1.c b/clang/test/3C/generated_tests/fptrsafecalleemulti1.c similarity index 100% rename from clang/test/3C/fptrsafecalleemulti1.c rename to clang/test/3C/generated_tests/fptrsafecalleemulti1.c diff --git a/clang/test/3C/fptrsafecalleemulti2.c b/clang/test/3C/generated_tests/fptrsafecalleemulti2.c similarity index 100% rename from clang/test/3C/fptrsafecalleemulti2.c rename to clang/test/3C/generated_tests/fptrsafecalleemulti2.c diff --git a/clang/test/3C/fptrsafecaller.c b/clang/test/3C/generated_tests/fptrsafecaller.c similarity index 100% rename from clang/test/3C/fptrsafecaller.c rename to clang/test/3C/generated_tests/fptrsafecaller.c diff --git a/clang/test/3C/fptrsafecallermulti1.c b/clang/test/3C/generated_tests/fptrsafecallermulti1.c similarity index 100% rename from clang/test/3C/fptrsafecallermulti1.c rename to clang/test/3C/generated_tests/fptrsafecallermulti1.c diff --git a/clang/test/3C/fptrsafecallermulti2.c b/clang/test/3C/generated_tests/fptrsafecallermulti2.c similarity index 100% rename from clang/test/3C/fptrsafecallermulti2.c rename to clang/test/3C/generated_tests/fptrsafecallermulti2.c diff --git a/clang/test/3C/fptrsafeprotoboth.c b/clang/test/3C/generated_tests/fptrsafeprotoboth.c similarity index 100% rename from clang/test/3C/fptrsafeprotoboth.c rename to clang/test/3C/generated_tests/fptrsafeprotoboth.c diff --git a/clang/test/3C/fptrsafeprotocallee.c b/clang/test/3C/generated_tests/fptrsafeprotocallee.c similarity index 100% rename from clang/test/3C/fptrsafeprotocallee.c rename to clang/test/3C/generated_tests/fptrsafeprotocallee.c diff --git a/clang/test/3C/fptrsafeprotocaller.c b/clang/test/3C/generated_tests/fptrsafeprotocaller.c similarity index 100% rename from clang/test/3C/fptrsafeprotocaller.c rename to clang/test/3C/generated_tests/fptrsafeprotocaller.c diff --git a/clang/test/3C/fptrsafeprotosafe.c b/clang/test/3C/generated_tests/fptrsafeprotosafe.c similarity index 100% rename from clang/test/3C/fptrsafeprotosafe.c rename to clang/test/3C/generated_tests/fptrsafeprotosafe.c diff --git a/clang/test/3C/fptrsafesafe.c b/clang/test/3C/generated_tests/fptrsafesafe.c similarity index 100% rename from clang/test/3C/fptrsafesafe.c rename to clang/test/3C/generated_tests/fptrsafesafe.c diff --git a/clang/test/3C/fptrsafesafemulti1.c b/clang/test/3C/generated_tests/fptrsafesafemulti1.c similarity index 100% rename from clang/test/3C/fptrsafesafemulti1.c rename to clang/test/3C/generated_tests/fptrsafesafemulti1.c diff --git a/clang/test/3C/fptrsafesafemulti2.c b/clang/test/3C/generated_tests/fptrsafesafemulti2.c similarity index 100% rename from clang/test/3C/fptrsafesafemulti2.c rename to clang/test/3C/generated_tests/fptrsafesafemulti2.c diff --git a/clang/test/3C/fptrunsafeboth.c b/clang/test/3C/generated_tests/fptrunsafeboth.c similarity index 100% rename from clang/test/3C/fptrunsafeboth.c rename to clang/test/3C/generated_tests/fptrunsafeboth.c diff --git a/clang/test/3C/fptrunsafebothmulti1.c b/clang/test/3C/generated_tests/fptrunsafebothmulti1.c similarity index 100% rename from clang/test/3C/fptrunsafebothmulti1.c rename to clang/test/3C/generated_tests/fptrunsafebothmulti1.c diff --git a/clang/test/3C/fptrunsafebothmulti2.c b/clang/test/3C/generated_tests/fptrunsafebothmulti2.c similarity index 100% rename from clang/test/3C/fptrunsafebothmulti2.c rename to clang/test/3C/generated_tests/fptrunsafebothmulti2.c diff --git a/clang/test/3C/fptrunsafecallee.c b/clang/test/3C/generated_tests/fptrunsafecallee.c similarity index 100% rename from clang/test/3C/fptrunsafecallee.c rename to clang/test/3C/generated_tests/fptrunsafecallee.c diff --git a/clang/test/3C/fptrunsafecalleemulti1.c b/clang/test/3C/generated_tests/fptrunsafecalleemulti1.c similarity index 100% rename from clang/test/3C/fptrunsafecalleemulti1.c rename to clang/test/3C/generated_tests/fptrunsafecalleemulti1.c diff --git a/clang/test/3C/fptrunsafecalleemulti2.c b/clang/test/3C/generated_tests/fptrunsafecalleemulti2.c similarity index 100% rename from clang/test/3C/fptrunsafecalleemulti2.c rename to clang/test/3C/generated_tests/fptrunsafecalleemulti2.c diff --git a/clang/test/3C/fptrunsafecaller.c b/clang/test/3C/generated_tests/fptrunsafecaller.c similarity index 100% rename from clang/test/3C/fptrunsafecaller.c rename to clang/test/3C/generated_tests/fptrunsafecaller.c diff --git a/clang/test/3C/fptrunsafecallermulti1.c b/clang/test/3C/generated_tests/fptrunsafecallermulti1.c similarity index 100% rename from clang/test/3C/fptrunsafecallermulti1.c rename to clang/test/3C/generated_tests/fptrunsafecallermulti1.c diff --git a/clang/test/3C/fptrunsafecallermulti2.c b/clang/test/3C/generated_tests/fptrunsafecallermulti2.c similarity index 100% rename from clang/test/3C/fptrunsafecallermulti2.c rename to clang/test/3C/generated_tests/fptrunsafecallermulti2.c diff --git a/clang/test/3C/fptrunsafeprotoboth.c b/clang/test/3C/generated_tests/fptrunsafeprotoboth.c similarity index 100% rename from clang/test/3C/fptrunsafeprotoboth.c rename to clang/test/3C/generated_tests/fptrunsafeprotoboth.c diff --git a/clang/test/3C/fptrunsafeprotocallee.c b/clang/test/3C/generated_tests/fptrunsafeprotocallee.c similarity index 100% rename from clang/test/3C/fptrunsafeprotocallee.c rename to clang/test/3C/generated_tests/fptrunsafeprotocallee.c diff --git a/clang/test/3C/fptrunsafeprotocaller.c b/clang/test/3C/generated_tests/fptrunsafeprotocaller.c similarity index 100% rename from clang/test/3C/fptrunsafeprotocaller.c rename to clang/test/3C/generated_tests/fptrunsafeprotocaller.c diff --git a/clang/test/3C/fptrunsafeprotosafe.c b/clang/test/3C/generated_tests/fptrunsafeprotosafe.c similarity index 100% rename from clang/test/3C/fptrunsafeprotosafe.c rename to clang/test/3C/generated_tests/fptrunsafeprotosafe.c diff --git a/clang/test/3C/fptrunsafesafe.c b/clang/test/3C/generated_tests/fptrunsafesafe.c similarity index 100% rename from clang/test/3C/fptrunsafesafe.c rename to clang/test/3C/generated_tests/fptrunsafesafe.c diff --git a/clang/test/3C/fptrunsafesafemulti1.c b/clang/test/3C/generated_tests/fptrunsafesafemulti1.c similarity index 100% rename from clang/test/3C/fptrunsafesafemulti1.c rename to clang/test/3C/generated_tests/fptrunsafesafemulti1.c diff --git a/clang/test/3C/fptrunsafesafemulti2.c b/clang/test/3C/generated_tests/fptrunsafesafemulti2.c similarity index 100% rename from clang/test/3C/fptrunsafesafemulti2.c rename to clang/test/3C/generated_tests/fptrunsafesafemulti2.c diff --git a/clang/test/3C/ptrTOptrboth.c b/clang/test/3C/generated_tests/ptrTOptrboth.c similarity index 100% rename from clang/test/3C/ptrTOptrboth.c rename to clang/test/3C/generated_tests/ptrTOptrboth.c diff --git a/clang/test/3C/ptrTOptrbothmulti1.c b/clang/test/3C/generated_tests/ptrTOptrbothmulti1.c similarity index 100% rename from clang/test/3C/ptrTOptrbothmulti1.c rename to clang/test/3C/generated_tests/ptrTOptrbothmulti1.c diff --git a/clang/test/3C/ptrTOptrbothmulti2.c b/clang/test/3C/generated_tests/ptrTOptrbothmulti2.c similarity index 100% rename from clang/test/3C/ptrTOptrbothmulti2.c rename to clang/test/3C/generated_tests/ptrTOptrbothmulti2.c diff --git a/clang/test/3C/ptrTOptrcallee.c b/clang/test/3C/generated_tests/ptrTOptrcallee.c similarity index 100% rename from clang/test/3C/ptrTOptrcallee.c rename to clang/test/3C/generated_tests/ptrTOptrcallee.c diff --git a/clang/test/3C/ptrTOptrcalleemulti1.c b/clang/test/3C/generated_tests/ptrTOptrcalleemulti1.c similarity index 100% rename from clang/test/3C/ptrTOptrcalleemulti1.c rename to clang/test/3C/generated_tests/ptrTOptrcalleemulti1.c diff --git a/clang/test/3C/ptrTOptrcalleemulti2.c b/clang/test/3C/generated_tests/ptrTOptrcalleemulti2.c similarity index 100% rename from clang/test/3C/ptrTOptrcalleemulti2.c rename to clang/test/3C/generated_tests/ptrTOptrcalleemulti2.c diff --git a/clang/test/3C/ptrTOptrcaller.c b/clang/test/3C/generated_tests/ptrTOptrcaller.c similarity index 100% rename from clang/test/3C/ptrTOptrcaller.c rename to clang/test/3C/generated_tests/ptrTOptrcaller.c diff --git a/clang/test/3C/ptrTOptrcallermulti1.c b/clang/test/3C/generated_tests/ptrTOptrcallermulti1.c similarity index 100% rename from clang/test/3C/ptrTOptrcallermulti1.c rename to clang/test/3C/generated_tests/ptrTOptrcallermulti1.c diff --git a/clang/test/3C/ptrTOptrcallermulti2.c b/clang/test/3C/generated_tests/ptrTOptrcallermulti2.c similarity index 100% rename from clang/test/3C/ptrTOptrcallermulti2.c rename to clang/test/3C/generated_tests/ptrTOptrcallermulti2.c diff --git a/clang/test/3C/ptrTOptrprotoboth.c b/clang/test/3C/generated_tests/ptrTOptrprotoboth.c similarity index 100% rename from clang/test/3C/ptrTOptrprotoboth.c rename to clang/test/3C/generated_tests/ptrTOptrprotoboth.c diff --git a/clang/test/3C/ptrTOptrprotocallee.c b/clang/test/3C/generated_tests/ptrTOptrprotocallee.c similarity index 100% rename from clang/test/3C/ptrTOptrprotocallee.c rename to clang/test/3C/generated_tests/ptrTOptrprotocallee.c diff --git a/clang/test/3C/ptrTOptrprotocaller.c b/clang/test/3C/generated_tests/ptrTOptrprotocaller.c similarity index 100% rename from clang/test/3C/ptrTOptrprotocaller.c rename to clang/test/3C/generated_tests/ptrTOptrprotocaller.c diff --git a/clang/test/3C/ptrTOptrprotosafe.c b/clang/test/3C/generated_tests/ptrTOptrprotosafe.c similarity index 100% rename from clang/test/3C/ptrTOptrprotosafe.c rename to clang/test/3C/generated_tests/ptrTOptrprotosafe.c diff --git a/clang/test/3C/ptrTOptrsafe.c b/clang/test/3C/generated_tests/ptrTOptrsafe.c similarity index 100% rename from clang/test/3C/ptrTOptrsafe.c rename to clang/test/3C/generated_tests/ptrTOptrsafe.c diff --git a/clang/test/3C/ptrTOptrsafemulti1.c b/clang/test/3C/generated_tests/ptrTOptrsafemulti1.c similarity index 100% rename from clang/test/3C/ptrTOptrsafemulti1.c rename to clang/test/3C/generated_tests/ptrTOptrsafemulti1.c diff --git a/clang/test/3C/ptrTOptrsafemulti2.c b/clang/test/3C/generated_tests/ptrTOptrsafemulti2.c similarity index 100% rename from clang/test/3C/ptrTOptrsafemulti2.c rename to clang/test/3C/generated_tests/ptrTOptrsafemulti2.c diff --git a/clang/test/3C/safefptrargboth.c b/clang/test/3C/generated_tests/safefptrargboth.c similarity index 100% rename from clang/test/3C/safefptrargboth.c rename to clang/test/3C/generated_tests/safefptrargboth.c diff --git a/clang/test/3C/safefptrargbothmulti1.c b/clang/test/3C/generated_tests/safefptrargbothmulti1.c similarity index 100% rename from clang/test/3C/safefptrargbothmulti1.c rename to clang/test/3C/generated_tests/safefptrargbothmulti1.c diff --git a/clang/test/3C/safefptrargbothmulti2.c b/clang/test/3C/generated_tests/safefptrargbothmulti2.c similarity index 100% rename from clang/test/3C/safefptrargbothmulti2.c rename to clang/test/3C/generated_tests/safefptrargbothmulti2.c diff --git a/clang/test/3C/safefptrargcallee.c b/clang/test/3C/generated_tests/safefptrargcallee.c similarity index 100% rename from clang/test/3C/safefptrargcallee.c rename to clang/test/3C/generated_tests/safefptrargcallee.c diff --git a/clang/test/3C/safefptrargcalleemulti1.c b/clang/test/3C/generated_tests/safefptrargcalleemulti1.c similarity index 100% rename from clang/test/3C/safefptrargcalleemulti1.c rename to clang/test/3C/generated_tests/safefptrargcalleemulti1.c diff --git a/clang/test/3C/safefptrargcalleemulti2.c b/clang/test/3C/generated_tests/safefptrargcalleemulti2.c similarity index 100% rename from clang/test/3C/safefptrargcalleemulti2.c rename to clang/test/3C/generated_tests/safefptrargcalleemulti2.c diff --git a/clang/test/3C/safefptrargcaller.c b/clang/test/3C/generated_tests/safefptrargcaller.c similarity index 100% rename from clang/test/3C/safefptrargcaller.c rename to clang/test/3C/generated_tests/safefptrargcaller.c diff --git a/clang/test/3C/safefptrargcallermulti1.c b/clang/test/3C/generated_tests/safefptrargcallermulti1.c similarity index 100% rename from clang/test/3C/safefptrargcallermulti1.c rename to clang/test/3C/generated_tests/safefptrargcallermulti1.c diff --git a/clang/test/3C/safefptrargcallermulti2.c b/clang/test/3C/generated_tests/safefptrargcallermulti2.c similarity index 100% rename from clang/test/3C/safefptrargcallermulti2.c rename to clang/test/3C/generated_tests/safefptrargcallermulti2.c diff --git a/clang/test/3C/safefptrargprotoboth.c b/clang/test/3C/generated_tests/safefptrargprotoboth.c similarity index 100% rename from clang/test/3C/safefptrargprotoboth.c rename to clang/test/3C/generated_tests/safefptrargprotoboth.c diff --git a/clang/test/3C/safefptrargprotocallee.c b/clang/test/3C/generated_tests/safefptrargprotocallee.c similarity index 100% rename from clang/test/3C/safefptrargprotocallee.c rename to clang/test/3C/generated_tests/safefptrargprotocallee.c diff --git a/clang/test/3C/safefptrargprotocaller.c b/clang/test/3C/generated_tests/safefptrargprotocaller.c similarity index 100% rename from clang/test/3C/safefptrargprotocaller.c rename to clang/test/3C/generated_tests/safefptrargprotocaller.c diff --git a/clang/test/3C/safefptrargprotosafe.c b/clang/test/3C/generated_tests/safefptrargprotosafe.c similarity index 100% rename from clang/test/3C/safefptrargprotosafe.c rename to clang/test/3C/generated_tests/safefptrargprotosafe.c diff --git a/clang/test/3C/safefptrargsafe.c b/clang/test/3C/generated_tests/safefptrargsafe.c similarity index 100% rename from clang/test/3C/safefptrargsafe.c rename to clang/test/3C/generated_tests/safefptrargsafe.c diff --git a/clang/test/3C/safefptrargsafemulti1.c b/clang/test/3C/generated_tests/safefptrargsafemulti1.c similarity index 100% rename from clang/test/3C/safefptrargsafemulti1.c rename to clang/test/3C/generated_tests/safefptrargsafemulti1.c diff --git a/clang/test/3C/safefptrargsafemulti2.c b/clang/test/3C/generated_tests/safefptrargsafemulti2.c similarity index 100% rename from clang/test/3C/safefptrargsafemulti2.c rename to clang/test/3C/generated_tests/safefptrargsafemulti2.c diff --git a/clang/test/3C/unsafefptrargboth.c b/clang/test/3C/generated_tests/unsafefptrargboth.c similarity index 100% rename from clang/test/3C/unsafefptrargboth.c rename to clang/test/3C/generated_tests/unsafefptrargboth.c diff --git a/clang/test/3C/unsafefptrargbothmulti1.c b/clang/test/3C/generated_tests/unsafefptrargbothmulti1.c similarity index 100% rename from clang/test/3C/unsafefptrargbothmulti1.c rename to clang/test/3C/generated_tests/unsafefptrargbothmulti1.c diff --git a/clang/test/3C/unsafefptrargbothmulti2.c b/clang/test/3C/generated_tests/unsafefptrargbothmulti2.c similarity index 100% rename from clang/test/3C/unsafefptrargbothmulti2.c rename to clang/test/3C/generated_tests/unsafefptrargbothmulti2.c diff --git a/clang/test/3C/unsafefptrargcallee.c b/clang/test/3C/generated_tests/unsafefptrargcallee.c similarity index 100% rename from clang/test/3C/unsafefptrargcallee.c rename to clang/test/3C/generated_tests/unsafefptrargcallee.c diff --git a/clang/test/3C/unsafefptrargcalleemulti1.c b/clang/test/3C/generated_tests/unsafefptrargcalleemulti1.c similarity index 100% rename from clang/test/3C/unsafefptrargcalleemulti1.c rename to clang/test/3C/generated_tests/unsafefptrargcalleemulti1.c diff --git a/clang/test/3C/unsafefptrargcalleemulti2.c b/clang/test/3C/generated_tests/unsafefptrargcalleemulti2.c similarity index 100% rename from clang/test/3C/unsafefptrargcalleemulti2.c rename to clang/test/3C/generated_tests/unsafefptrargcalleemulti2.c diff --git a/clang/test/3C/unsafefptrargcaller.c b/clang/test/3C/generated_tests/unsafefptrargcaller.c similarity index 100% rename from clang/test/3C/unsafefptrargcaller.c rename to clang/test/3C/generated_tests/unsafefptrargcaller.c diff --git a/clang/test/3C/unsafefptrargcallermulti1.c b/clang/test/3C/generated_tests/unsafefptrargcallermulti1.c similarity index 100% rename from clang/test/3C/unsafefptrargcallermulti1.c rename to clang/test/3C/generated_tests/unsafefptrargcallermulti1.c diff --git a/clang/test/3C/unsafefptrargcallermulti2.c b/clang/test/3C/generated_tests/unsafefptrargcallermulti2.c similarity index 100% rename from clang/test/3C/unsafefptrargcallermulti2.c rename to clang/test/3C/generated_tests/unsafefptrargcallermulti2.c diff --git a/clang/test/3C/unsafefptrargprotoboth.c b/clang/test/3C/generated_tests/unsafefptrargprotoboth.c similarity index 100% rename from clang/test/3C/unsafefptrargprotoboth.c rename to clang/test/3C/generated_tests/unsafefptrargprotoboth.c diff --git a/clang/test/3C/unsafefptrargprotocallee.c b/clang/test/3C/generated_tests/unsafefptrargprotocallee.c similarity index 100% rename from clang/test/3C/unsafefptrargprotocallee.c rename to clang/test/3C/generated_tests/unsafefptrargprotocallee.c diff --git a/clang/test/3C/unsafefptrargprotocaller.c b/clang/test/3C/generated_tests/unsafefptrargprotocaller.c similarity index 100% rename from clang/test/3C/unsafefptrargprotocaller.c rename to clang/test/3C/generated_tests/unsafefptrargprotocaller.c diff --git a/clang/test/3C/unsafefptrargprotosafe.c b/clang/test/3C/generated_tests/unsafefptrargprotosafe.c similarity index 100% rename from clang/test/3C/unsafefptrargprotosafe.c rename to clang/test/3C/generated_tests/unsafefptrargprotosafe.c diff --git a/clang/test/3C/unsafefptrargsafe.c b/clang/test/3C/generated_tests/unsafefptrargsafe.c similarity index 100% rename from clang/test/3C/unsafefptrargsafe.c rename to clang/test/3C/generated_tests/unsafefptrargsafe.c diff --git a/clang/test/3C/unsafefptrargsafemulti1.c b/clang/test/3C/generated_tests/unsafefptrargsafemulti1.c similarity index 100% rename from clang/test/3C/unsafefptrargsafemulti1.c rename to clang/test/3C/generated_tests/unsafefptrargsafemulti1.c diff --git a/clang/test/3C/unsafefptrargsafemulti2.c b/clang/test/3C/generated_tests/unsafefptrargsafemulti2.c similarity index 100% rename from clang/test/3C/unsafefptrargsafemulti2.c rename to clang/test/3C/generated_tests/unsafefptrargsafemulti2.c diff --git a/clang/test/3C/processor.py b/clang/test/3C/processor.py index cc2a93cf9284..573867d35ec7 100755 --- a/clang/test/3C/processor.py +++ b/clang/test/3C/processor.py @@ -7,6 +7,10 @@ import find_bin bin_path = find_bin.bin_path +# Change to the subdirectory after calling `find_bin` (which assumes a working +# directory of `clang/test/3C`) but before doing anything else. +os.chdir("b_tests") + structs = """\ struct np { int x; diff --git a/clang/test/3C/testgenerator.py b/clang/test/3C/testgenerator.py index 55539b627369..66d5ff4122d0 100755 --- a/clang/test/3C/testgenerator.py +++ b/clang/test/3C/testgenerator.py @@ -11,6 +11,16 @@ import find_bin bin_path = find_bin.bin_path +# Change to the subdirectory after calling `find_bin` (which assumes a working +# directory of `clang/test/3C`) but before doing anything else. +subdir_name = "generated_tests" +# Since testgenerator deletes tests under some conditions and Git may delete +# empty directories, theoretically the directory might not exist and we might +# need to create it here. +if not os.path.isdir(subdir_name): + os.mkdir(subdir_name) +os.chdir(subdir_name) + prefixes = [ "arr", "arrstruct", "arrinstruct", "arrofstruct", "safefptrarg", "unsafefptrarg", "fptrsafe", "fptrunsafe", "fptrarr", "fptrarrstruct",