aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/attributes.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-03 03:45:26 +0000
committerChris Lattner <sabre@nondot.org>2008-03-03 03:45:26 +0000
commitf89e88d1278828e43d4a67687ba96af88a66d634 (patch)
tree0072b5af125ffd2a00608ce78946b57c7df1ad8b /test/CodeGen/attributes.c
parentddee4231e9bdfbac1e1f5385ff1a17fd0e0b0e39 (diff)
fix codegen support for functions that are nothrow and noreturn.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/attributes.c')
-rw-r--r--test/CodeGen/attributes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/attributes.c b/test/CodeGen/attributes.c
index 59f3e73297..73e0601894 100644
--- a/test/CodeGen/attributes.c
+++ b/test/CodeGen/attributes.c
@@ -19,3 +19,8 @@ int t5 __attribute__((weak)) = 2;
// RUN: clang -emit-llvm < %s | grep 't6.*protected'
int t6 __attribute__((visibility(protected)));
+
+// RUN: clang -emit-llvm < %s | grep 't7.*noreturn'
+// RUN: clang -emit-llvm < %s | grep 't7.*nothrow'
+void t7() __attribute__((noreturn, nothrow));
+void t7() {}