1## Check that generated functions are included.
2# RUN: cp -f %S/Inputs/generated_funcs_prefix_reuse.ll %t.ll && %update_test_checks --include-generated-funcs %t.ll
3# RUN: diff -u %t.ll %S/Inputs/generated_funcs_prefix_reuse.ll.generated.expected
4
5## Check that running the script again does not change the result:
6# RUN: %update_test_checks --include-generated-funcs %t.ll
7# RUN: diff -u %t.ll %S/Inputs/generated_funcs_prefix_reuse.ll.generated.expected
8## Also try the --check-globals flag
9# RUN: %update_test_checks %t.ll --check-globals
10# RUN: diff -u %t.ll %S/Inputs/generated_funcs_prefix_reuse.ll.generated.globals.expected
11
12## Check that generated functions are not included.
13# RUN: cp -f %S/Inputs/generated_funcs_prefix_reuse.ll %t.ll && %update_test_checks %t.ll
14# RUN: diff -u %t.ll %S/Inputs/generated_funcs_prefix_reuse.ll.nogenerated.expected
15
16## Check that running the script again does not change the result:
17# RUN: %update_test_checks %t.ll
18# RUN: diff -u %t.ll %S/Inputs/generated_funcs_prefix_reuse.ll.nogenerated.expected
19## Also try the --check-globals flag
20# RUN: %update_test_checks %t.ll --check-globals
21# RUN: diff -u %t.ll %S/Inputs/generated_funcs_prefix_reuse.ll.nogenerated.globals.expected
22