
These tests aren't actually libc++-specific for the most part. They test the testsuite, so they aren't tied to any implementation. That means anybody using the testsuite should be able to run these tests successfully. The most notable changes are that - `test/libcxx/selftest/modules` moved to `test/libcxx/modules`, since the assumptions these tests check are libc++-specific - there is a new `lit.local.cfg` for `test/selftest` - `selftest/dsl/dsl.sh.py` was modified since the path to the monorepo root changed
24 lines
718 B
C++
24 lines
718 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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;
|
|
}
|