Merge with main truk.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist-protected.C
blob5d121634a602750b3cb320b5aa23a22783355c09
1 // PR c++/54325
2 // { dg-do compile { target c++11 } }
4 class base
6     protected:
7         base()
8         {}
9 };
11 class derived : public base
13     public:
14         derived()
15             : base{} // <-- Note the c++11 curly brace syntax
16         {}
19 int main()
21     derived d1;
22     return 0;