1 // PR c++/50837
2 // { dg-do compile { target c++11 } }
3 
4 template<class T>
5 struct z
6 {
test_constexprz7   static constexpr bool test_constexpr()
8   {
9     return true;
10   }
11 
testz12   static void test()
13   {
14     static_assert(test_constexpr(), "test1");
15   }
16 };
17 
main()18 int main()
19 {
20   z<int>::test();
21 }
22