diff options
Diffstat (limited to 'test/std/algorithms/alg.nonmodifying/alg.count')
-rw-r--r-- | test/std/algorithms/alg.nonmodifying/alg.count/count.pass.cpp | 11 | ||||
-rw-r--r-- | test/std/algorithms/alg.nonmodifying/alg.count/count_if.pass.cpp | 11 |
2 files changed, 12 insertions, 10 deletions
diff --git a/test/std/algorithms/alg.nonmodifying/alg.count/count.pass.cpp b/test/std/algorithms/alg.nonmodifying/alg.count/count.pass.cpp index bce1095f2..d864080df 100644 --- a/test/std/algorithms/alg.nonmodifying/alg.count/count.pass.cpp +++ b/test/std/algorithms/alg.nonmodifying/alg.count/count.pass.cpp @@ -1,9 +1,8 @@ //===----------------------------------------------------------------------===// // -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. +// 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 // //===----------------------------------------------------------------------===// @@ -30,7 +29,7 @@ TEST_CONSTEXPR bool test_constexpr() { } #endif -int main() +int main(int, char**) { int ia[] = {0, 1, 2, 2, 0, 1, 2, 3}; const unsigned sa = sizeof(ia)/sizeof(ia[0]); @@ -44,4 +43,6 @@ int main() #if TEST_STD_VER > 17 static_assert(test_constexpr()); #endif + + return 0; } diff --git a/test/std/algorithms/alg.nonmodifying/alg.count/count_if.pass.cpp b/test/std/algorithms/alg.nonmodifying/alg.count/count_if.pass.cpp index ff3b6888a..978f5fcdb 100644 --- a/test/std/algorithms/alg.nonmodifying/alg.count/count_if.pass.cpp +++ b/test/std/algorithms/alg.nonmodifying/alg.count/count_if.pass.cpp @@ -1,9 +1,8 @@ //===----------------------------------------------------------------------===// // -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. +// 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 // //===----------------------------------------------------------------------===// @@ -37,7 +36,7 @@ TEST_CONSTEXPR bool test_constexpr() { } #endif -int main() +int main(int, char**) { int ia[] = {0, 1, 2, 2, 0, 1, 2, 3}; const unsigned sa = sizeof(ia)/sizeof(ia[0]); @@ -54,4 +53,6 @@ int main() #if TEST_STD_VER > 17 static_assert(test_constexpr()); #endif + + return 0; } |