blob: 590785fc1774d9a533d9e25760f886c7e54a8bf6 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// 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. This is to make sure the test suite always runs
// with -Werror.
// ADDITIONAL_COMPILE_FLAGS: -Wunused-variable
// TODO: We don't enable -Werror on GCC right now, because too many tests fail.
// UNSUPPORTED: gcc
int main(int, char**) {
int foo;
}