diff options
author | Mike Stump <mrs@apple.com> | 2009-12-15 18:02:45 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-12-15 18:02:45 +0000 |
commit | edd722e38b883236c9f214d5df309110500b3529 (patch) | |
tree | 4e84bf9a14adc0de6e5f16c3b9c9dd2fc5fd1ef0 | |
parent | 8a9e170efd32855377bc7fc5f7ea431ec4f8802e (diff) |
Add testcase for recent checkin.
Patch by Chip Davis.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91436 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Sema/attr-noreturn.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Sema/attr-noreturn.c b/test/Sema/attr-noreturn.c index 14011bedca..047cdad6b5 100644 --- a/test/Sema/attr-noreturn.c +++ b/test/Sema/attr-noreturn.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -verify -fsyntax-only %s +// RUN: clang -cc1 -verify -fsyntax-only %s static void (*fp0)(void) __attribute__((noreturn)); @@ -33,3 +33,8 @@ f5 (unsigned long size) { } + +// PR2461 +__attribute__((noreturn)) void f(__attribute__((noreturn)) void (*x)(void)) { + x(); +} |