Lines Matching +full:test2 +full:. +full:good
2 # https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
12 # version of the C++ standard. If necessary, add switches to CXX and
13 # CXXCPP to enable support. VERSION may be '11' (for the C++11 standard)
14 # or '14' (for the C++14 standard).
17 # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
18 # -std=c++11). If neither is specified, you get whatever works, with
19 # preference for an extended mode.
24 # support is found. If specified 'optional', then configuration proceeds
26 # supporting mode is found.
30 # Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
31 # Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
32 # Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
33 # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
34 # Copyright (c) 2015 Paul Norman <penorman@mac.com>
35 # Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
36 # Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz@gmail.com>
37 # Copyright (c) 2019 Enji Cooper <yaneurabeya@gmail.com>
41 # and this notice are preserved. This file is offered as-is, without any
42 # warranty.
47 dnl (serial version number 13).
92 dnl http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/PDF_Release_Notes/769149-001.pdf
122 AC_MSG_ERROR([*** A compiler with support for C++$1 language features is required.])
162 // Hopefully, this will speed up the test.
360 test2()
394 template <int...>
397 template <int N0, int... N1toN>
398 struct sum<N0, N1toN...>
400 static constexpr auto value = N0 + sum<N1toN...>::value;
418 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
419 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
420 // because of this.
430 void func(...) {}
453 // Hopefully, this will speed up the test.
474 const auto lambda = [](auto&&... args){
478 const int aretiny[] = { istiny(args)... };
577 // Hopefully, this will speed up the test.
611 template<typename... Args>
612 int multiply(Args... args)
614 return (args * ... * 1);
617 template<typename... Args>
618 bool all(Args... args)
620 return (args && ...);
731 return i.i == s.i;
908 struct Good {};
919 Good
922 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);