Akira Hatanaka | 8eccb9b | 2017-01-17 19:35:54 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -std=c++1z -fsyntax-only -verify -Winitializer-overrides |
2 | // expected-no-diagnostics | ||||
3 | |||||
4 | struct B { | ||||
5 | int x; | ||||
6 | }; | ||||
7 | |||||
8 | struct D : B { | ||||
9 | int y; | ||||
10 | }; | ||||
11 | |||||
12 | void test() { D d = {1, .y = 2}; } |