diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-02-25 20:59:29 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-25 20:59:29 +0000 |
| commit | 4208835eec108b1816b53e54ce777b77dedc247a (patch) | |
| tree | 68c1da9711f239405fe1b5e3a279f970cb70f87c /clang/test | |
| parent | 1cdbc5404b408dfe241392dc9c2d25bece69178d (diff) | |
| download | bcm5719-llvm-4208835eec108b1816b53e54ce777b77dedc247a.tar.gz bcm5719-llvm-4208835eec108b1816b53e54ce777b77dedc247a.zip | |
Temporarily disable clearing of insert point (to indicate unreachable
code) when calling noreturn functions; general expression emission
isn't ready to do the right thing in all cases.
llvm-svn: 65473
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGen/function-attributes.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/function-attributes.c b/clang/test/CodeGen/function-attributes.c index ca16459fd97..eb8b1e33249 100644 --- a/clang/test/CodeGen/function-attributes.c +++ b/clang/test/CodeGen/function-attributes.c @@ -35,5 +35,12 @@ void f9(void) { f9_t(); } // RUN: grep 'call i32 @f10_t() readnone' %t && int __attribute__((const)) f10_t(void); int f10(void) { return f10_t(); } +int f11(void) { + exit: + return f10_t(); +} +int f12(int arg) { + return arg ? 0 : f10_t(); +} // RUN: true |

