aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/block-literal.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-22 03:42:19 +0000
committerChris Lattner <sabre@nondot.org>2009-04-22 03:42:19 +0000
commit3936024941229e235aed7f53949a117a54eebf68 (patch)
tree30cccfdcf1d6924a0f59c68f75a4e6596322579f /test/Sema/block-literal.c
parent1c02f86f5be46f36d6c5facb88c2d15e0e19266c (diff)
Fix rdar://6814950 - stdint.h isn't "-pedantic -std=c89" clean,
by marking the predefines buffer as a system header. The problem with stdint is that it was getting problems like this: /Volumes/Projects/cvs/llvm/Debug/lib/clang/1.0/include/stdint.h:43:9: warning: 'long long' is an extension when C99 mode is not enabled typedef __INT64_TYPE__ int64_t; ^ <built-in>:73:29: note: instantiated from: #define __INT64_TYPE__ long long ^ We correctly silence warnings in system headers, but only if the spelling location of the token came from the system header. This is designed so that if you use a system macro in your code that you don't get punished for its definition. This is all cool except that the predefines buffer wasn't considered a system header. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/block-literal.c')
-rw-r--r--test/Sema/block-literal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/block-literal.c b/test/Sema/block-literal.c
index 2c1700a7b7..c6e3931aa8 100644
--- a/test/Sema/block-literal.c
+++ b/test/Sema/block-literal.c
@@ -40,7 +40,7 @@ void test2() {
foo:
takeclosure(^{ x = 4; }); // expected-error {{variable is not assignable (missing __block type specifier)}}
- __block y = 7; // expected-warning {{type specifier missing, defaults to 'int'}}
+ __block y = 7;
takeclosure(^{ y = 8; });
}