Drop unnecessary #include.

llvm-svn: 89154
This commit is contained in:
Daniel Dunbar 2009-11-17 22:25:16 +00:00
parent ba0c9e8685
commit f6e32e4abe
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,6 @@
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s // RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s // RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
#include <stdlib.h>
int* f1() { int* f1() {
int x = 0; int x = 0;
return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}} return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}

View File

@ -6,7 +6,9 @@
provided as part of warning or extension diagnostics. All of the provided as part of warning or extension diagnostics. All of the
warnings will be fixed by -fixit, and the resulting file should warnings will be fixed by -fixit, and the resulting file should
compile cleanly with -Werror -pedantic. */ compile cleanly with -Werror -pedantic. */
#include <string.h> // FIXME: FIX-IT hint should add this for us!
// FIXME: FIX-IT should add #include <string.h>?
int strcmp(const char *s1, const char *s2);
void f0(void) { }; void f0(void) { };