* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-trivial1.C
blobf4b74a7eec9fc7e4bb231343f6b553cb60e37198
1 // PR c++/70139
2 // { dg-options "-fno-elide-constructors" }
3 // { dg-do compile { target c++11 } }
5 template<class T, class U>
6 struct A
8   T a;
9   U b;
10   constexpr A () : a (), b () { }
11   constexpr A (const T &x, const U &y) : a (x), b (y) { }
13 struct B
15   constexpr B (const bool x) : c (x) {}
16   constexpr bool operator!= (const B x) const { return c != x.c; }
17   bool c;
19 constexpr static A<B, B*> d[] = { { B (true), nullptr }, { B (false), nullptr } };
20 static_assert (d[0].a != d[1].a, "");