blob: ccecd36523509423ddc34d2aa54007aa24387da8 [file] [log] [blame]
Douglas Gregor84af7c22009-04-17 19:21:43 +00001// Test this without pch.
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: clang-cc -fblocks -include %S/blocks.h -fsyntax-only -emit-llvm -o - %s
Douglas Gregor84af7c22009-04-17 19:21:43 +00003
4// Test with pch.
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00005// RUN: clang-cc -emit-pch -fblocks -o %t %S/blocks.h
Douglas Gregor72971342009-04-18 00:02:19 +00006// RUN: clang-cc -fblocks -include-pch %t -fsyntax-only -emit-llvm -o - %s
Douglas Gregor84af7c22009-04-17 19:21:43 +00007
8int do_add(int x, int y) { return add(x, y); }
9
10int do_scaled_add(int a, int b, int s) {
11 return scaled_add(a, b, s);
12}