]> granicus.if.org Git - clang/commitdiff
Add testcase for recent checkin.
authorMike Stump <mrs@apple.com>
Tue, 15 Dec 2009 18:02:45 +0000 (18:02 +0000)
committerMike Stump <mrs@apple.com>
Tue, 15 Dec 2009 18:02:45 +0000 (18:02 +0000)
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

index 14011bedca1ae27cad93439bc8f6ed09519984c8..047cdad6b5a0a915e7139eb645d421b87c473c2a 100644 (file)
@@ -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();
+}