repo.or.cz
/
official-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 failing character pointer fcn assignment [PR105054]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-virtual4.C
blob
b938d6535c781995c43b87452b2de16d44558051
1
// PR c++/56291
2
// { dg-do compile { target c++11 } }
3
4
class Base
5
{
6
public:
7
constexpr Base() : v(1) {};
8
int v;
9
};
10
11
class Derived : public Base
12
{
13
public:
14
constexpr Derived() : Base() {};
15
virtual void function();
16
};
17
18
Derived d;