diff options
Diffstat (limited to 'test/std/strings/string.conversions')
-rw-r--r-- | test/std/strings/string.conversions/stod.pass.cpp | 11 | ||||
-rw-r--r-- | test/std/strings/string.conversions/stof.pass.cpp | 11 | ||||
-rw-r--r-- | test/std/strings/string.conversions/stoi.pass.cpp | 11 | ||||
-rw-r--r-- | test/std/strings/string.conversions/stol.pass.cpp | 11 | ||||
-rw-r--r-- | test/std/strings/string.conversions/stold.pass.cpp | 11 | ||||
-rw-r--r-- | test/std/strings/string.conversions/stoll.pass.cpp | 11 | ||||
-rw-r--r-- | test/std/strings/string.conversions/stoul.pass.cpp | 11 | ||||
-rw-r--r-- | test/std/strings/string.conversions/stoull.pass.cpp | 11 | ||||
-rw-r--r-- | test/std/strings/string.conversions/to_string.pass.cpp | 11 | ||||
-rw-r--r-- | test/std/strings/string.conversions/to_wstring.pass.cpp | 11 |
10 files changed, 60 insertions, 50 deletions
diff --git a/test/std/strings/string.conversions/stod.pass.cpp b/test/std/strings/string.conversions/stod.pass.cpp index 8773a6184..d13b695f2 100644 --- a/test/std/strings/string.conversions/stod.pass.cpp +++ b/test/std/strings/string.conversions/stod.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 // //===----------------------------------------------------------------------===// @@ -19,7 +18,7 @@ #include "test_macros.h" -int main() +int main(int, char**) { assert(std::stod("0") == 0); assert(std::stod(L"0") == 0); @@ -186,4 +185,6 @@ int main() assert(idx == 0); } #endif + + return 0; } diff --git a/test/std/strings/string.conversions/stof.pass.cpp b/test/std/strings/string.conversions/stof.pass.cpp index 7c1936487..2c8e4c9b9 100644 --- a/test/std/strings/string.conversions/stof.pass.cpp +++ b/test/std/strings/string.conversions/stof.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 // //===----------------------------------------------------------------------===// // @@ -23,7 +22,7 @@ #include "test_macros.h" -int main() +int main(int, char**) { assert(std::stof("0") == 0); assert(std::stof(L"0") == 0); @@ -187,4 +186,6 @@ int main() assert(idx == 0); } #endif + + return 0; } diff --git a/test/std/strings/string.conversions/stoi.pass.cpp b/test/std/strings/string.conversions/stoi.pass.cpp index efc43b3aa..b3e416331 100644 --- a/test/std/strings/string.conversions/stoi.pass.cpp +++ b/test/std/strings/string.conversions/stoi.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 // //===----------------------------------------------------------------------===// @@ -18,7 +17,7 @@ #include "test_macros.h" -int main() +int main(int, char**) { assert(std::stoi("0") == 0); assert(std::stoi(L"0") == 0); @@ -110,4 +109,6 @@ int main() assert(idx == 0); } #endif + + return 0; } diff --git a/test/std/strings/string.conversions/stol.pass.cpp b/test/std/strings/string.conversions/stol.pass.cpp index 481543622..ef0cbb4ed 100644 --- a/test/std/strings/string.conversions/stol.pass.cpp +++ b/test/std/strings/string.conversions/stol.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 // //===----------------------------------------------------------------------===// // @@ -22,7 +21,7 @@ #include "test_macros.h" -int main() +int main(int, char**) { assert(std::stol("0") == 0); assert(std::stol(L"0") == 0); @@ -114,4 +113,6 @@ int main() assert(idx == 0); } #endif + + return 0; } diff --git a/test/std/strings/string.conversions/stold.pass.cpp b/test/std/strings/string.conversions/stold.pass.cpp index 9d9dc3832..5b21fd0e3 100644 --- a/test/std/strings/string.conversions/stold.pass.cpp +++ b/test/std/strings/string.conversions/stold.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 // //===----------------------------------------------------------------------===// @@ -20,7 +19,7 @@ #include "test_macros.h" -int main() +int main(int, char**) { assert(std::stold("0") == 0); assert(std::stold(L"0") == 0); @@ -189,4 +188,6 @@ int main() assert(idx == 0); } #endif + + return 0; } diff --git a/test/std/strings/string.conversions/stoll.pass.cpp b/test/std/strings/string.conversions/stoll.pass.cpp index fe4c40b78..73d5e8201 100644 --- a/test/std/strings/string.conversions/stoll.pass.cpp +++ b/test/std/strings/string.conversions/stoll.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 // //===----------------------------------------------------------------------===// // @@ -22,7 +21,7 @@ #include "test_macros.h" -int main() +int main(int, char**) { assert(std::stoll("0") == 0); assert(std::stoll(L"0") == 0); @@ -113,4 +112,6 @@ int main() assert(idx == 0); } #endif + + return 0; } diff --git a/test/std/strings/string.conversions/stoul.pass.cpp b/test/std/strings/string.conversions/stoul.pass.cpp index c79c94941..6ef861396 100644 --- a/test/std/strings/string.conversions/stoul.pass.cpp +++ b/test/std/strings/string.conversions/stoul.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 // //===----------------------------------------------------------------------===// // @@ -22,7 +21,7 @@ #include "test_macros.h" -int main() +int main(int, char**) { assert(std::stoul("0") == 0); assert(std::stoul(L"0") == 0); @@ -112,4 +111,6 @@ int main() assert(idx == 0); } #endif + + return 0; } diff --git a/test/std/strings/string.conversions/stoull.pass.cpp b/test/std/strings/string.conversions/stoull.pass.cpp index 2ac883ec0..3e21c683a 100644 --- a/test/std/strings/string.conversions/stoull.pass.cpp +++ b/test/std/strings/string.conversions/stoull.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 // //===----------------------------------------------------------------------===// // @@ -22,7 +21,7 @@ #include "test_macros.h" -int main() +int main(int, char**) { assert(std::stoull("0") == 0); assert(std::stoull(L"0") == 0); @@ -113,4 +112,6 @@ int main() assert(idx == 0); } #endif + + return 0; } diff --git a/test/std/strings/string.conversions/to_string.pass.cpp b/test/std/strings/string.conversions/to_string.pass.cpp index fdc682ce1..23729cd4f 100644 --- a/test/std/strings/string.conversions/to_string.pass.cpp +++ b/test/std/strings/string.conversions/to_string.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 // //===----------------------------------------------------------------------===// @@ -113,7 +112,7 @@ test_float() } } -int main() +int main(int, char**) { test_signed<int>(); test_signed<long>(); @@ -124,4 +123,6 @@ int main() test_float<float>(); test_float<double>(); test_float<long double>(); + + return 0; } diff --git a/test/std/strings/string.conversions/to_wstring.pass.cpp b/test/std/strings/string.conversions/to_wstring.pass.cpp index 2208ec5a3..02a262a0f 100644 --- a/test/std/strings/string.conversions/to_wstring.pass.cpp +++ b/test/std/strings/string.conversions/to_wstring.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 // //===----------------------------------------------------------------------===// @@ -113,7 +112,7 @@ test_float() } } -int main() +int main(int, char**) { test_signed<int>(); test_signed<long>(); @@ -124,4 +123,6 @@ int main() test_float<float>(); test_float<double>(); test_float<long double>(); + + return 0; } |