brintos

brintos / llvm-project-archived public Read only

0
0
Text · 738 B · 590785f Raw
23 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. This is to make sure the test suite always runs13// with -Werror.14 15// ADDITIONAL_COMPILE_FLAGS: -Wunused-variable16 17// TODO: We don't enable -Werror on GCC right now, because too many tests fail.18// UNSUPPORTED: gcc19 20int main(int, char**) {21    int foo;22}23