diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-22 18:11:50 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-22 18:11:50 +0000 |
commit | dc72875d25e608327d5056e922caac75ea86b634 (patch) | |
tree | 627fd7849f6e6de9957b37b949193ab6a000a9db /clang/test | |
parent | 71d7eaa87eee8176bf6318e33007152d7e9eefa6 (diff) | |
download | bcm5719-llvm-dc72875d25e608327d5056e922caac75ea86b634.tar.gz bcm5719-llvm-dc72875d25e608327d5056e922caac75ea86b634.zip |
Serialize the NoReturn bit on FunctionTypes for precompiled headers
llvm-svn: 91911
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/PCH/functions.c | 5 | ||||
-rw-r--r-- | clang/test/PCH/functions.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/PCH/functions.c b/clang/test/PCH/functions.c index fd0c3764b47..eb8579ab2ef 100644 --- a/clang/test/PCH/functions.c +++ b/clang/test/PCH/functions.c @@ -18,3 +18,8 @@ void test_g0(int *x, float * y) { g0(y); // expected-warning{{incompatible pointer types passing 'float *', expected 'int *'}} g0(x); } + +void __attribute__((noreturn)) test_abort(int code) { + do_abort(code); +} + diff --git a/clang/test/PCH/functions.h b/clang/test/PCH/functions.h index bc28ad7321c..39724300816 100644 --- a/clang/test/PCH/functions.h +++ b/clang/test/PCH/functions.h @@ -4,3 +4,5 @@ int f0(int x, int y, ...); float *f1(float x, float y); void g0(int *); + +void do_abort(int) __attribute__((noreturn)); |