//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // XFAIL: * // Make sure that even a simple unused variable warning is treated as an // error in the test suite, including in .sh.cpp tests. // TODO: We don't enable -Werror on GCC right now, because too many tests fail. // UNSUPPORTED: gcc // RUN: %{build} -Wunused-variable // RUN: %{run} int main(int, char**) { int foo; return 0; }