[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / designated-initializers-base-class.cpp
blob2aa9603e44303c34e76a579393173b6376b70a41
1 // RUN: %clang_cc1 %s -std=c++1z -fsyntax-only -verify -Winitializer-overrides
3 struct B {
4 int x;
5 };
7 struct D : B {
8 int y;
9 };
11 void test() { D d = {1, .y = 2}; } // expected-warning {{C99 extension}} expected-note {{}}