| commit | 1aa1941889e08cf84e9fa392f1697522ab9a7ec6 | [log] [tgz] |
|---|---|---|
| author | Steve Naroff <snaroff@apple.com> | Thu Jan 17 00:36:28 2008 +0000 |
| committer | Steve Naroff <snaroff@apple.com> | Thu Jan 17 00:36:28 2008 +0000 |
| tree | 06e2e7919ae08190efb024a99a65558089b4be20 | |
| parent | dc5b4c57d728fd37627810f6937c5f746e831413 [diff] [blame] |
Declarator::clear(): Null out variable after it's been deleted. This avoids a double free (which is good:-) Bug submitted by Eli. llvm-svn: 46105
diff --git a/clang/test/Sema/declspec.c b/clang/test/Sema/declspec.c index d9e02ec..05f492d 100644 --- a/clang/test/Sema/declspec.c +++ b/clang/test/Sema/declspec.c
@@ -3,3 +3,6 @@ T foo(int n, int m) { } // expected-error {{cannot return array or function}} +void foof(const char *, ...) __attribute__((__format__(__printf__, 1, 2))), barf (void); + +