git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108671 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zhongxing Xu 2010-07-19 02:06:14 +00:00
Родитель bc46c6b9c5
Коммит c6a36ff1d5
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -44,5 +44,5 @@ void f5(void) {
void f6(void) { void f6(void) {
FILE *p = fopen("foo", "r"); FILE *p = fopen("foo", "r");
fclose(p); fclose(p);
fclose(p); // expected-warning {{Try to close a file Descriptor already closed. Cause Undefined Behaviour.}} fclose(p); // expected-warning {{Try to close a file Descriptor already closed. Cause undefined behaviour.}}
} }