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
/
initlist-pure.C
blob
a9dbc90835b662a3ee9a3d604dbbf11ca8ace842
1
// PR c++/54325
2
// { dg-do compile { target c++11 } }
3
4
class Base {
5
public:
6
Base() {};
7
virtual ~Base() {};
8
9
virtual void do_stuff() = 0;
10
};
11
12
class Derived: public Base {
13
public:
14
Derived() : Base{} {};
15
virtual ~Derived() {};
16
17
virtual void do_stuff() {};
18
};
19
20
int
21
main() {
22
Derived d;
23
24
return 0;
25
}