[llvm-branch-commits] [libcxx] f2966d1 - [libc++] Use consistent declaration for main() in test

Louis Dionne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Dec 15 14:39:02 PST 2020


Author: Louis Dionne
Date: 2020-12-15T17:34:06-05:00
New Revision: f2966d17a2706809308ae768f64c6b4046f6f432

URL: https://github.com/llvm/llvm-project/commit/f2966d17a2706809308ae768f64c6b4046f6f432
DIFF: https://github.com/llvm/llvm-project/commit/f2966d17a2706809308ae768f64c6b4046f6f432.diff

LOG: [libc++] Use consistent declaration for main() in test

Added: 
    

Modified: 
    libcxx/test/std/iterators/iterator.primitives/iterator.operations/robust_against_adl.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/iterators/iterator.primitives/iterator.operations/robust_against_adl.pass.cpp b/libcxx/test/std/iterators/iterator.primitives/iterator.operations/robust_against_adl.pass.cpp
index 9dac2976632e..32d770ed4f91 100644
--- a/libcxx/test/std/iterators/iterator.primitives/iterator.operations/robust_against_adl.pass.cpp
+++ b/libcxx/test/std/iterators/iterator.primitives/iterator.operations/robust_against_adl.pass.cpp
@@ -20,7 +20,7 @@ struct Intable {
     operator int() const { return 1; }
 };
 
-int main() {
+int main(int, char**) {
     Holder<Incomplete> *a[2] = {};
     Holder<Incomplete> **p = a;
 #if TEST_STD_VER >= 17
@@ -31,4 +31,6 @@ int main() {
 #endif
     std::advance(p, Intable<Holder<Incomplete> >());
     (void)std::distance(p, p);
+
+    return 0;
 }


        


More information about the llvm-branch-commits mailing list