repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
static_assert5.C
blob
36cf2eb3b968c844a4e4b1f1553e5e0f8e66c62c
1
// PR c++/50837
2
// { dg-do compile { target c++11 } }
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
}