[llvm-commits] [llvm-gcc-4.2] r110675 - /llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-1.c
Bill Wendling
isanbard at gmail.com
Tue Aug 10 04:12:10 PDT 2010
Author: void
Date: Tue Aug 10 06:12:10 2010
New Revision: 110675
URL: http://llvm.org/viewvc/llvm-project?rev=110675&view=rev
Log:
Warnings are now errors.
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-1.c
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-1.c?rev=110675&r1=110674&r2=110675&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/block-blocks-test-1.c Tue Aug 10 06:12:10 2010
@@ -2,14 +2,14 @@
/* { dg-options "-fblocks" } */
/* { dg-do compile } */
-__block int X; /* { dg-warning "__block attribute is only allowed on local variables - ignored" } */
+__block int X; /* { dg-error "__block attribute on \\'X\\' not allowed, only allowed on local variables" } */
-int foo(__block int param) { /* { dg-warning "__block attribute can be specified on variables only - ignored" } */
+int foo(__block int param) { /* { dg-error "__block attribute can be specified on variables only" } */
__block int OK = 1;
- extern __block double extern_var; /* { dg-warning "__block attribute is only allowed on local variables - ignored" } */
+ extern __block double extern_var; /* { dg-error "__block attribute on \\'extern_var\\' not allowed, only allowed on local variables" } */
if (X) {
- static __block char * pch; /* { dg-warning "__block attribute is only allowed on local variables - ignored" } */
+ static __block char * pch; /* { dg-error "__block attribute on \\'pch\\' not allowed, only allowed on local variables" } */
}
return OK - 1;
}
More information about the llvm-commits
mailing list