зеркало из https://github.com/microsoft/clang-1.git
Add 'expected-warning' for braces around scalar initializer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
194aade5a0
Коммит
c532f633a9
|
@ -19,6 +19,6 @@ int* f3(int x, int *y) {
|
|||
}
|
||||
|
||||
unsigned short* compound_literal() {
|
||||
return &(unsigned short){((unsigned short)0x22EF)}; // expected-warning{{Address of stack memory}}
|
||||
return &(unsigned short){((unsigned short)0x22EF)}; // expected-warning{{Address of stack memory}} expected-warning{{braces around scalar initializer}}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче