Guy Benyei | b13621d | 2012-12-18 14:38:23 +0000 | [diff] [blame] | 1 | // Test this without pch. |
| 2 | // RUN: %clang_cc1 -include %S/ocl_types.h -fsyntax-only %s |
| 3 | |
| 4 | // Test with pch. |
| 5 | // RUN: %clang_cc1 -x cl -emit-pch -o %t %S/ocl_types.h |
| 6 | // RUN: %clang_cc1 -include-pch %t -fsyntax-only %s -ast-print |
| 7 | |
| 8 | void foo1(img1d_t img); |
| 9 | |
| 10 | void foo2(img1darr_t img); |
| 11 | |
| 12 | void foo3(img1dbuff_t img); |
| 13 | |
| 14 | void foo4(img2d_t img); |
| 15 | |
| 16 | void foo5(img2darr_t img); |
| 17 | |
| 18 | void foo6(img3d_t img); |
Guy Benyei | e6b9d80 | 2013-01-20 12:31:11 +0000 | [diff] [blame] | 19 | |
Guy Benyei | 21f18c4 | 2013-02-07 10:55:47 +0000 | [diff] [blame] | 20 | void foo7(smp_t smp) { |
| 21 | smp_t loc_smp; |
| 22 | } |
| 23 | |
Guy Benyei | e6b9d80 | 2013-01-20 12:31:11 +0000 | [diff] [blame] | 24 | void foo8(evt_t evt) { |
| 25 | evt_t loc_evt; |
| 26 | } |