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
Merge with main truk.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-protected.C
blob
5d121634a602750b3cb320b5aa23a22783355c09
1
// PR c++/54325
2
// { dg-do compile { target c++11 } }
3
4
class base
5
{
6
protected:
7
base()
8
{}
9
};
10
11
class derived : public base
12
{
13
public:
14
derived()
15
: base{} // <-- Note the c++11 curly brace syntax
16
{}
17
};
18
19
int main()
20
{
21
derived d1;
22
return 0;
23
}