Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Sema/block-storageclass.c @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks |
2 // expected-no-diagnostics | |
3 | |
4 int printf(const char *, ...); | |
5 void _Block_byref_release(void*src){} | |
6 | |
7 int main() { | |
8 __block int X = 1234; | |
9 __block const char * message = "HELLO"; | |
10 | |
11 X = X - 1234; | |
12 | |
13 X += 1; | |
14 | |
15 printf ("%s(%d)\n", message, X); | |
16 X -= 1; | |
17 | |
18 return X; | |
19 } |