summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/experimental/utilities/meta/meta.detect/detected_t.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/experimental/utilities/meta/meta.detect/detected_t.pass.cpp')
-rw-r--r--libcxx/test/std/experimental/utilities/meta/meta.detect/detected_t.pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/std/experimental/utilities/meta/meta.detect/detected_t.pass.cpp b/libcxx/test/std/experimental/utilities/meta/meta.detect/detected_t.pass.cpp
index 7d3304fbcb4..ebb7ecc7d9c 100644
--- a/libcxx/test/std/experimental/utilities/meta/meta.detect/detected_t.pass.cpp
+++ b/libcxx/test/std/experimental/utilities/meta/meta.detect/detected_t.pass.cpp
@@ -40,8 +40,10 @@ void test() {
static_assert( std::is_same<Res, typename ex::detected_t<callFoo, T>>::value, "" );
}
-int main () {
+int main(int, char**) {
test<yesFoo, int>();
test<noFoo, ex::nonesuch>(); // lookup failure returns nonesuch
test<wrongFoo, std::string>();
+
+ return 0;
}
OpenPOWER on IntegriCloud