aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/function-attributes.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-25 20:59:29 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-25 20:59:29 +0000
commit0334a4ec63c43ac9ed13faa30fbcfc7697828ffd (patch)
tree64dd7ce2cbf250a4281d727cb06f1fd9e4a2b8fd /test/CodeGen/function-attributes.c
parente5731f81497d11f95027a500a3ee118f4fc9e1be (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/function-attributes.c')
-rw-r--r--test/CodeGen/function-attributes.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/function-attributes.c b/test/CodeGen/function-attributes.c
index ca16459fd9..eb8b1e3324 100644
--- a/test/CodeGen/function-attributes.c
+++ b/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