OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/54325
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-pure.C
1
// PR c++/54325
2
// { dg-options -std=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
}