OSDN Git Service

PR c++/51107
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / static_assert5.C
1 // PR c++/50837
2 // { dg-options "-std=c++0x" }
3
4 template<class T>
5 struct z
6 {
7   static constexpr bool test_constexpr()
8   {
9     return true;
10   }
11
12   static void test()
13   {
14     static_assert(test_constexpr(), "test1");
15   }
16 };
17
18 int main()
19 {
20   z<int>::test();
21 }