blocks.c 383 B

123456789101112
  1. // Test this without pch.
  2. // RUN: %clang_cc1 -fblocks -include %S/blocks.h -fsyntax-only -emit-llvm -o - %s
  3. // Test with pch.
  4. // RUN: %clang_cc1 -emit-pch -fblocks -o %t %S/blocks.h
  5. // RUN: %clang_cc1 -fblocks -include-pch %t -fsyntax-only -emit-llvm -o - %s
  6. int do_add(int x, int y) { return add(x, y); }
  7. int do_scaled_add(int a, int b, int s) {
  8. return scaled_add(a, b, s);
  9. }