From: Mike Stump Date: Wed, 29 Jul 2009 00:17:20 +0000 (+0000) Subject: Be sure to turn on -fblocks. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87e5732f3307c838fff6adea8ba50147110fe092;p=clang Be sure to turn on -fblocks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77406 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/return-noreturn.c b/test/Sema/return-noreturn.c index c1cebee864..0a227a61cc 100644 --- a/test/Sema/return-noreturn.c +++ b/test/Sema/return-noreturn.c @@ -1,4 +1,4 @@ -// RUN: clang-cc %s -fsyntax-only -verify -Wmissing-noreturn +// RUN: clang-cc %s -fsyntax-only -verify -fblocks -Wmissing-noreturn int j; void test1() { // expected-warning {{function could be attribute 'noreturn'}} diff --git a/test/Sema/return.c b/test/Sema/return.c index 3c5fc79ebd..64def306eb 100644 --- a/test/Sema/return.c +++ b/test/Sema/return.c @@ -1,4 +1,4 @@ -// RUN: clang-cc %s -fsyntax-only -verify +// RUN: clang-cc %s -fsyntax-only -verify -fblocks // clang emits the following warning by default. // With GCC, -pedantic, -Wreturn-type or -Wall are required to produce the