| // RUN: %clang_cc1 -std=c++1z -verify %s |
| template <typename Ctx> class record { |
| constexpr S(const int &a = 0) {} |
| void foo(void) { S s[2] = {}; } |
| bool bar(float const &f = 0); |
| bool foo() { return bar() && bar(); } |
| struct A { int &&r = 0; }; |
| typedef struct Y { unsigned int c; } Y_t; |
| struct X foo[2] = {[0 ... 1] = {.a = (Y_t){.c = 0}}}; // expected-warning {{C99 extension}} |
| struct Y { unsigned int c; }; |
| struct X { struct Y *p; }; |
| // FIXME: This causes clang to crash. |
| //return (struct X[2]){ [0 ... 1] = { .p = &(struct Y&)(struct Y&&)(struct Y){0} } }[0].p->c; |
| bool b() { return a() == a(); } |
| array() : data(*new int[1][2]) {} |
| inline constexpr long ullNil = -1; |
| template<typename T = long, const T &Nil = ullNil> |
| inline constexpr long lNil = -1; |