1 ## Test that CHECK lines are generated for clang-generated functions
3 # RUN: cp %S/Inputs/generated-funcs.c %t-generated.c && %update_cc_test_checks --include-generated-funcs --check-globals smart %t-generated.c
4 # RUN: diff -u %S/Inputs/generated-funcs.c.generated.expected %t-generated.c
5 # RUN: cp %S/Inputs/generated-funcs.c %t-no-generated.c && %update_cc_test_checks --check-globals smart %t-no-generated.c
6 # RUN: diff -u %S/Inputs/generated-funcs.c.no-generated.expected %t-no-generated.c
8 ## Check that re-running update_cc_test_checks doesn't change the output
9 # RUN: %update_cc_test_checks --include-generated-funcs %t-generated.c
10 # RUN: diff -u %S/Inputs/generated-funcs.c.generated.expected %t-generated.c
11 # RUN: %update_cc_test_checks %t-no-generated.c
12 # RUN: diff -u %S/Inputs/generated-funcs.c.no-generated.expected %t-no-generated.c
14 ## Same as above for --check-globals all
15 # RUN: cp %S/Inputs/generated-funcs.c %t-generated.c && %update_cc_test_checks --include-generated-funcs --check-globals all %t-generated.c
16 # RUN: diff -u %S/Inputs/generated-funcs.c.generated.all.expected %t-generated.c
17 # RUN: cp %S/Inputs/generated-funcs.c %t-no-generated.c && %update_cc_test_checks --check-globals all %t-no-generated.c
18 # RUN: diff -u %S/Inputs/generated-funcs.c.no-generated.all.expected %t-no-generated.c
20 ## Check that re-running update_cc_test_checks doesn't change the output
21 # RUN: %update_cc_test_checks --include-generated-funcs %t-generated.c
22 # RUN: diff -u %S/Inputs/generated-funcs.c.generated.all.expected %t-generated.c
23 # RUN: %update_cc_test_checks %t-no-generated.c
24 # RUN: diff -u %S/Inputs/generated-funcs.c.no-generated.all.expected %t-no-generated.c