diff --git a/src/test/shell/bazel/cc_integration_test.sh b/src/test/shell/bazel/cc_integration_test.sh index 83cb9a17cba72d..4c924047de6bee 100755 --- a/src/test/shell/bazel/cc_integration_test.sh +++ b/src/test/shell/bazel/cc_integration_test.sh @@ -1456,4 +1456,26 @@ EOF expect_log "fatal error: '\?dep.h'\?" } +function test_fallback_to_non_xcode_toolchain() { + # This test should trivially pass on platforms other than macOS, so there is no need to exclude + # it. + + cat > ok.cc < +int main() { + printf("Hello\n"); +} +EOF + + cat > BUILD <