blob: 0e5065cceedc24bc9b8a1fa19bb75aaa4ce14416 [file] [log] [blame]
Douglas Gregor84af7c22009-04-17 19:21:43 +00001// Test this without pch.
2// RUN: clang-cc -fblocks -include %S/blocks.h -fsyntax-only -ast-print -o - %s
3
4// Test with pch.
5// RUN: clang-cc -emit-pch -fblocks -o %t %S/blocks.h &&
6// RUN: clang-cc -fblocks -include-pch %t -fsyntax-only -ast-print -o - %s
7
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}