repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
designated-initializers-base-class.cpp
blob
2aa9603e44303c34e76a579393173b6376b70a41
1
// RUN: %clang_cc1 %s -std=c++1z -fsyntax-only -verify -Winitializer-overrides
2
3
struct
B
{
4
int
x
;
5
};
6
7
struct
D
:
B
{
8
int
y
;
9
};
10
11
void
test
() {
D d
= {
1
, .
y
=
2
}; }
// expected-warning {{C99 extension}} expected-note {{}}