From edd722e38b883236c9f214d5df309110500b3529 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Tue, 15 Dec 2009 18:02:45 +0000 Subject: [PATCH] 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 --- test/Sema/attr-noreturn.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); +} -- 2.40.0