Douglas Gregor | 84af7c2 | 2009-04-17 19:21:43 +0000 | [diff] [blame] | 1 | // Test this without pch. |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // RUN: clang-cc -fblocks -include %S/blocks.h -fsyntax-only -emit-llvm -o - %s |
Douglas Gregor | 84af7c2 | 2009-04-17 19:21:43 +0000 | [diff] [blame] | 3 | |
| 4 | // Test with pch. |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: clang-cc -emit-pch -fblocks -o %t %S/blocks.h |
Douglas Gregor | 7297134 | 2009-04-18 00:02:19 +0000 | [diff] [blame] | 6 | // RUN: clang-cc -fblocks -include-pch %t -fsyntax-only -emit-llvm -o - %s |
Douglas Gregor | 84af7c2 | 2009-04-17 19:21:43 +0000 | [diff] [blame] | 7 | |
| 8 | int do_add(int x, int y) { return add(x, y); } |
| 9 | |
| 10 | int do_scaled_add(int a, int b, int s) { |
| 11 | return scaled_add(a, b, s); |
| 12 | } |