Use require with test_compiler_info

One spot that checks test_compiler_info can be switched to use
'require'.
This commit is contained in:
Tom Tromey 2023-02-22 14:53:39 -07:00
parent 24d59b55a8
commit 6349d27e30

View File

@ -16,10 +16,7 @@
standard_testfile
# Clang says it will never support variable length arrays in structures.
if {[test_compiler_info clang*]} {
unsupported "compiler does not support variable length arrays in structure"
return
}
require {!test_compiler_info clang*}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
return -1