diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-12-16 06:28:21 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-12-16 06:28:21 +0000 |
| commit | 53b3cde60f5053ba7c1ff797bf7a165bc0d41ad4 (patch) | |
| tree | 62d01ac685ecae118bf4ae35e6dd3c55d8ff45b5 /clang/test/Analysis | |
| parent | ce5b95c05af916360e1ebd8817795eab36a728b5 (diff) | |
| download | bcm5719-llvm-53b3cde60f5053ba7c1ff797bf7a165bc0d41ad4.tar.gz bcm5719-llvm-53b3cde60f5053ba7c1ff797bf7a165bc0d41ad4.zip | |
Add abort() as a builtin. This has two effects: one, we warn for incorrect
declarations of abort(), and two, we mark it noreturn. Missing the latter
shows up in one of the "embarassing" tests (from the thread on llvmdev
"detailed comparison of generated code size for LLVM and other compilers").
llvm-svn: 91515
Diffstat (limited to 'clang/test/Analysis')
| -rw-r--r-- | clang/test/Analysis/security-syntax-checks.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Analysis/security-syntax-checks.m b/clang/test/Analysis/security-syntax-checks.m index 1d35ccffe39..cfdb030746d 100644 --- a/clang/test/Analysis/security-syntax-checks.m +++ b/clang/test/Analysis/security-syntax-checks.m @@ -48,6 +48,7 @@ int setuid(uid_t); int setregid(gid_t, gid_t); int setreuid(uid_t, uid_t); extern void check(int); +void abort(void); void test_setuid() { |

