brintos

brintos / llvm-project-archived public Read only

0
0
Text · 718 B · 3188f57 Raw
24 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// XFAIL: *10 11// Make sure that even a simple unused variable warning is treated as an12// error in the test suite, including in .sh.cpp tests.13 14// TODO: We don't enable -Werror on GCC right now, because too many tests fail.15// UNSUPPORTED: gcc16 17// RUN: %{build} -Wunused-variable18// RUN: %{run}19 20int main(int, char**) {21    int foo;22    return 0;23}24