[test] Fix dr324.c again for non-writeable source directories
authorJordan Rupprecht <rupprecht@google.com>
Mon, 12 Dec 2022 18:11:19 +0000 (10:11 -0800)
committerJordan Rupprecht <rupprecht@google.com>
Mon, 12 Dec 2022 18:11:19 +0000 (10:11 -0800)
commitfc7b8e71312f89986be1a7cc67377a2decfcf337
treedb914bd68a2ec7b22c402e228338abea9b3f4352
parentb7ada67f1c28ae67c61578dd3bc8acb4d8d55d28
[test] Fix dr324.c again for non-writeable source directories

In general, the source tree is not assumed to be writeable, so modifying `%s` does not work for all CI systems. Instead of touching `%s`, copy it to a writeable dir using `%t`, and touch it there.
Actually, `dr0xx.c` isn't really needed at all, so just create a new `dep.c` file in the build tree.

This was recently added in cb088e8c3abf30456e2891f90b5194d0070c387a, fixed in 1481fcf780bde7b115aa395064d71749b1a40889, and fixed again in d16c59013056f1bf8844ded8faeb0cf01b1c3613.
clang/test/C/drs/dr324.c