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:
Ted Kremenek 2008-10-27 22:00:16 +00:00
Родитель 194aade5a0
Коммит c532f633a9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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}}
}