2 // { dg-require-effective-target c++11 }
12 constexpr T && foo (typename A <T>::type & __t) noexcept
14 return static_cast <T &&>(__t);
16 template <class T1, class T2>
22 constexpr B (U && __x, const T2 & __y) : t1 (foo <U> (__x)), t2 (__y) {}
24 static inline constexpr bool
27 return ('0' <= c) && (c <= '9');
29 static inline constexpr bool
32 return (('A' <= c) && (c <= 'Z')) || (('a' <= c) && (c <= 'z'));
35 fn3 (const char *const x)
37 return (x[1] == '\0' && x[0] == ']') ? true : (!fn1 (x[0])) ? false : fn3 (&x[1]);
40 fn4 (const char *const x)
42 return (x[0] == '\0') ? fn3 (&x[1]) : fn4 (&x[1]);
44 static inline constexpr bool
45 fn5 (const char *const x)
47 return fn2 (x[0]) ? fn4 (x) : false;
51 constexpr C (const char *const t1) : c (fn5 (t1) ? 199 : 69) {}
54 B <C, C> p ("a", "b");