1REQUIRES: shell 2 3RUN: %scan-build sh -c 'echo "CLANG_CXX=/$(basename "$CLANG_CXX")/"' | FileCheck %s 4 5Check that scan-build sets the CLANG_CXX environment variable (meant to be 6consumed by ccc-analyzer) to an appropriate pathname for the clang++ executable, 7derived from the pathname of the clang executable: 8 9CHECK: CLANG_CXX=/clang++{{(\.exe)?}}/ 10