call.c (null_ptr_cst_p): Use maybe_constant_value.
[platform/upstream/gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-static5.C
1 // { dg-options -std=c++0x }
2
3 template <class T>
4 struct A
5 {
6   constexpr static T t;
7 };
8 template <class T>
9 constexpr T A<T>::t = T();      // { dg-error "not literal" }
10
11 struct B
12 {
13   ~B();
14 };
15
16 B b = A<B>::t;
17