Implement new warning for functions declared 'noreturn' when they fall off the end.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76932 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/attributes.c b/test/CodeGen/attributes.c
index 8f157f3..00252b1 100644
--- a/test/CodeGen/attributes.c
+++ b/test/CodeGen/attributes.c
@@ -17,7 +17,7 @@
// RUN: grep '@t16 = extern_weak global i32' %t &&
void t1() __attribute__((noreturn));
-void t1() {}
+void t1() { while (1) {} }
void t2() __attribute__((nothrow));
void t2() {}
@@ -33,7 +33,7 @@
int t6 __attribute__((visibility("protected")));
void t7() __attribute__((noreturn, nothrow));
-void t7() {}
+void t7() { while (1) {} }
void __t8() {}
void t9() __attribute__((weak, alias("__t8")));