* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-fold2.C
blob98aca2a2ce04f75fde50f35db3c21d7746e9c6cf
1 // PR c++/65642
2 // { dg-do compile { target c++11 } }
4 #define SA(X) static_assert((X),#X)
6 constexpr char s[] = "abc";
8 constexpr bool
9 cmp (char const *a, char const *b)
11   return a == b;
14 constexpr bool
15 fn1 (const char *s)
17   return cmp (s, s + 1);
20 constexpr bool
21 fn2 (const char *s)
23   return cmp (s + 1, s + 1);
26 constexpr auto c1 = fn1 (&s[0]);
27 constexpr auto c2 = fn2 (&s[0]);
29 SA (!c1);
30 SA (c2);