summaryrefslogtreecommitdiff
path: root/test/std/strings/string.view/string.view.comparison
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/strings/string.view/string.view.comparison')
-rw-r--r--test/std/strings/string.view/string.view.comparison/opeq.string_view.pointer.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opeq.string_view.string.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opeq.string_view.string_view.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opge.string_view.string.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opge.string_view.string_view.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opgt.string_view.string.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opgt.string_view.string_view.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/ople.string_view.string.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/ople.string_view.string_view.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/oplt.string_view.string.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/oplt.string_view.string_view.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opne.string_view.pointer.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opne.string_view.string.pass.cpp11
-rw-r--r--test/std/strings/string.view/string.view.comparison/opne.string_view.string_view.pass.cpp11
18 files changed, 108 insertions, 90 deletions
diff --git a/test/std/strings/string.view/string.view.comparison/opeq.string_view.pointer.pass.cpp b/test/std/strings/string.view/string.view.comparison/opeq.string_view.pointer.pass.cpp
index 079c89191..e771bd328 100644
--- a/test/std/strings/string.view/string.view.comparison/opeq.string_view.pointer.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opeq.string_view.pointer.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
//
//===----------------------------------------------------------------------===//
@@ -28,7 +27,7 @@ test(S lhs, const typename S::value_type* rhs, bool x)
assert((rhs == lhs) == x);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -66,4 +65,6 @@ int main()
static_assert (!("abcde0" == sv2), "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opeq.string_view.string.pass.cpp b/test/std/strings/string.view/string.view.comparison/opeq.string_view.string.pass.cpp
index 4b107b01e..d27d4c445 100644
--- a/test/std/strings/string.view/string.view.comparison/opeq.string_view.string.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opeq.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -26,7 +25,7 @@ test(const std::string &lhs, S rhs, bool x)
assert((rhs == lhs) == x);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -47,5 +46,7 @@ int main()
test("abcdefghijklmnopqrst", S("abcdefghij"), false);
test("abcdefghijklmnopqrst", S("abcdefghijklmnopqrst"), true);
}
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opeq.string_view.string_view.pass.cpp b/test/std/strings/string.view/string.view.comparison/opeq.string_view.string_view.pass.cpp
index 59cd7215b..259711e3c 100644
--- a/test/std/strings/string.view/string.view.comparison/opeq.string_view.string_view.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opeq.string_view.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -27,7 +26,7 @@ test(S lhs, S rhs, bool x)
assert((rhs == lhs) == x);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -59,4 +58,6 @@ int main()
static_assert (!(sv1 == sv3), "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp b/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp
index a75cb3185..5fa57eb39 100644
--- a/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.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
//
//===----------------------------------------------------------------------===//
@@ -28,7 +27,7 @@ test(const typename S::value_type* lhs, const S& rhs, bool x, bool y)
assert((rhs >= lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -69,4 +68,6 @@ int main()
static_assert ( "abcde0" >= sv2, "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opge.string_view.string.pass.cpp b/test/std/strings/string.view/string.view.comparison/opge.string_view.string.pass.cpp
index 3881372ff..dddaa390e 100644
--- a/test/std/strings/string.view/string.view.comparison/opge.string_view.string.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opge.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -26,7 +25,7 @@ test(const S& lhs, const typename S::value_type* rhs, bool x, bool y)
assert((rhs >= lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -47,4 +46,6 @@ int main()
test(S("abcdefghijklmnopqrst"), "abcdefghij", true, false);
test(S("abcdefghijklmnopqrst"), "abcdefghijklmnopqrst", true, true);
}
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opge.string_view.string_view.pass.cpp b/test/std/strings/string.view/string.view.comparison/opge.string_view.string_view.pass.cpp
index 85455e18d..d35bea575 100644
--- a/test/std/strings/string.view/string.view.comparison/opge.string_view.string_view.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opge.string_view.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -27,7 +26,7 @@ test(const S& lhs, const S& rhs, bool x, bool y)
assert((rhs >= lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -62,4 +61,6 @@ int main()
static_assert ( sv2 >= sv1, "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp b/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp
index d4dc39e89..80dcc7b49 100644
--- a/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.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
//
//===----------------------------------------------------------------------===//
@@ -28,7 +27,7 @@ test(const typename S::value_type* lhs, const S& rhs, bool x, bool y)
assert((rhs > lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -69,4 +68,6 @@ int main()
static_assert ( "abcde0" > sv2, "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opgt.string_view.string.pass.cpp b/test/std/strings/string.view/string.view.comparison/opgt.string_view.string.pass.cpp
index f0058c809..84c9478bf 100644
--- a/test/std/strings/string.view/string.view.comparison/opgt.string_view.string.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opgt.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -26,7 +25,7 @@ test(const S& lhs, const typename S::value_type* rhs, bool x, bool y)
assert((rhs > lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -47,4 +46,6 @@ int main()
test(S("abcdefghijklmnopqrst"), "abcdefghij", true, false);
test(S("abcdefghijklmnopqrst"), "abcdefghijklmnopqrst", false, false);
}
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opgt.string_view.string_view.pass.cpp b/test/std/strings/string.view/string.view.comparison/opgt.string_view.string_view.pass.cpp
index 09f5360cd..ec31d5c2c 100644
--- a/test/std/strings/string.view/string.view.comparison/opgt.string_view.string_view.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opgt.string_view.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -27,7 +26,7 @@ test(const S& lhs, const S& rhs, bool x, bool y)
assert((rhs > lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -62,4 +61,6 @@ int main()
static_assert ( sv2 > sv1, "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp b/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp
index da6e2d90a..4f582239a 100644
--- a/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.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
//
//===----------------------------------------------------------------------===//
@@ -28,7 +27,7 @@ test(const typename S::value_type* lhs, const S& rhs, bool x, bool y)
assert((rhs <= lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -69,4 +68,6 @@ int main()
static_assert (!("abcde0" <= sv2), "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/ople.string_view.string.pass.cpp b/test/std/strings/string.view/string.view.comparison/ople.string_view.string.pass.cpp
index 092bc23b1..80e80757b 100644
--- a/test/std/strings/string.view/string.view.comparison/ople.string_view.string.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/ople.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -26,7 +25,7 @@ test(const S& lhs, const typename S::value_type* rhs, bool x, bool y)
assert((rhs <= lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -47,4 +46,6 @@ int main()
test(S("abcdefghijklmnopqrst"), "abcdefghij", false, true);
test(S("abcdefghijklmnopqrst"), "abcdefghijklmnopqrst", true, true);
}
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/ople.string_view.string_view.pass.cpp b/test/std/strings/string.view/string.view.comparison/ople.string_view.string_view.pass.cpp
index 17c0b6bfd..b1c186124 100644
--- a/test/std/strings/string.view/string.view.comparison/ople.string_view.string_view.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/ople.string_view.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -27,7 +26,7 @@ test(const S& lhs, const S& rhs, bool x, bool y)
assert((rhs <= lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -62,4 +61,6 @@ int main()
static_assert (!(sv2 <= sv1), "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp b/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp
index 554663f1b..14bba2abf 100644
--- a/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.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
//
//===----------------------------------------------------------------------===//
@@ -28,7 +27,7 @@ test(const typename S::value_type* lhs, const S& rhs, bool x, bool y)
assert((rhs < lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -69,4 +68,6 @@ int main()
static_assert (!("abcde0" < sv2), "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/oplt.string_view.string.pass.cpp b/test/std/strings/string.view/string.view.comparison/oplt.string_view.string.pass.cpp
index 609edd764..f611bac7a 100644
--- a/test/std/strings/string.view/string.view.comparison/oplt.string_view.string.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/oplt.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -26,7 +25,7 @@ test(const S& lhs, const typename S::value_type* rhs, bool x, bool y)
assert((rhs < lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -47,4 +46,6 @@ int main()
test(S("abcdefghijklmnopqrst"), "abcdefghij", false, true);
test(S("abcdefghijklmnopqrst"), "abcdefghijklmnopqrst", false, false);
}
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/oplt.string_view.string_view.pass.cpp b/test/std/strings/string.view/string.view.comparison/oplt.string_view.string_view.pass.cpp
index 9ae1927b4..f44e37361 100644
--- a/test/std/strings/string.view/string.view.comparison/oplt.string_view.string_view.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/oplt.string_view.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -27,7 +26,7 @@ test(const S& lhs, const S& rhs, bool x, bool y)
assert((rhs < lhs) == y);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -62,4 +61,6 @@ int main()
static_assert (!(sv2 < sv1), "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opne.string_view.pointer.pass.cpp b/test/std/strings/string.view/string.view.comparison/opne.string_view.pointer.pass.cpp
index 8a9c4dbfe..6b8add831 100644
--- a/test/std/strings/string.view/string.view.comparison/opne.string_view.pointer.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opne.string_view.pointer.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
//
//===----------------------------------------------------------------------===//
@@ -28,7 +27,7 @@ test(S lhs, const typename S::value_type* rhs, bool x)
assert((rhs != lhs) == x);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -67,4 +66,6 @@ int main()
static_assert ( "abcde0" != sv2, "" );
}
#endif
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opne.string_view.string.pass.cpp b/test/std/strings/string.view/string.view.comparison/opne.string_view.string.pass.cpp
index 0c981e21d..613eaf7b3 100644
--- a/test/std/strings/string.view/string.view.comparison/opne.string_view.string.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opne.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -26,7 +25,7 @@ test(const std::string &lhs, S rhs, bool x)
assert((rhs != lhs) == x);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -47,4 +46,6 @@ int main()
test("abcdefghijklmnopqrst", S("abcdefghij"), true);
test("abcdefghijklmnopqrst", S("abcdefghijklmnopqrst"), false);
}
+
+ return 0;
}
diff --git a/test/std/strings/string.view/string.view.comparison/opne.string_view.string_view.pass.cpp b/test/std/strings/string.view/string.view.comparison/opne.string_view.string_view.pass.cpp
index 63a3000f9..90d153335 100644
--- a/test/std/strings/string.view/string.view.comparison/opne.string_view.string_view.pass.cpp
+++ b/test/std/strings/string.view/string.view.comparison/opne.string_view.string_view.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
//
//===----------------------------------------------------------------------===//
@@ -27,7 +26,7 @@ test(S lhs, S rhs, bool x)
assert((rhs != lhs) == x);
}
-int main()
+int main(int, char**)
{
{
typedef std::string_view S;
@@ -59,4 +58,6 @@ int main()
static_assert ( sv1 != sv3, "" );
}
#endif
+
+ return 0;
}