brintos

brintos / llvm-project-archived public Read only

0
0
Text · 331 B · 0045fcf Raw
19 lines · c
1// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s2// expected-no-diagnostics3int printf(const char *, ...);4void _Block_byref_release(void*src){}5 6int main(void) {7   __block  int X = 1234;8   __block  const char * message = "HELLO";9 10   X = X - 1234;11 12   X += 1;13 14   printf ("%s(%d)\n", message, X);15   X -= 1;16 17   return X;18}19